feat(ISL): added light size control#1342
Conversation
WalkthroughThis change introduces and propagates a new "size" parameter for lights, derived from the field of view (FOV), into both C++ and shader code. It updates attenuation and radius calculations, modifies struct layouts to include the size field, and adjusts the light editor UI to support editing this new parameter for inverse square lights. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant LightEditor
participant RuntimeLightData
participant Shader
User->>LightEditor: Adjusts light FOV/size in UI
LightEditor->>RuntimeLightData: Updates size and radius fields
RuntimeLightData->>Shader: Passes size and radius to shader
Shader->>Shader: Calculates attenuation using size in denominator
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~18 minutes Possibly related PRs
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📓 Common learnings🔇 Additional comments (1)
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
✅ A pre-release build is available for this PR: |
Summary by CodeRabbit
New Features
Improvements
Bug Fixes