fix(hair): remove marschner gamma conversion and clean unused code#1238
fix(hair): remove marschner gamma conversion and clean unused code#1238jiayev wants to merge 1 commit into
Conversation
WalkthroughThe update removes the linear-to-gamma conversion for the diffuse direct lighting component in the Marschner hair lighting model within the shader code. Additionally, it deletes two commented-out lines related to dot product calculations for indirect specular lobe weights, streamlining the shader's handling of gamma correction and cleaning up unused code. Changes
Sequence Diagram(s)sequenceDiagram
participant Shader
participant LightingModel
participant Color
Shader->>LightingModel: GetHairDirectLightMarschner()
LightingModel-->>Shader: dirDiffuse, dirSpecular
%% Old: Shader->>Color: LinearToGamma(dirDiffuse)
%% New: (No LinearToGamma on dirDiffuse)
Shader->>Color: LinearToGamma(dirSpecular)
Note right of Shader: Only specular is gamma-corrected now
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
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: |
before, it would look too bright in interior by default
Summary by CodeRabbit