perf(extended translucency): enable only on alpha blended materials#1249
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the WalkthroughThe changes update the logic in Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant Geometry
participant ExtendedTranslucency
Caller->>ExtendedTranslucency: BSLightingShader_SetupGeometry(Geometry)
ExtendedTranslucency->>Geometry: GetRuntimeProperty()
alt Has alpha property with blending enabled
ExtendedTranslucency->>Geometry: GetExtraData(AnisotropicAlphaMaterial)
alt Extra data present
ExtendedTranslucency->>ExtendedTranslucency: Extract and mask material value
ExtendedTranslucency->>ExtendedTranslucency: Set feature descriptor accordingly
else Extra data missing
ExtendedTranslucency->>ExtendedTranslucency: Set feature descriptor to ForceDisabled
end
else No alpha property or blending disabled
ExtendedTranslucency->>ExtendedTranslucency: Set feature descriptor to ForceDisabled
end
Possibly related issues
Poem
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
|
Automated formatting by clang-format, prettier, and other hooks. See https://pre-commit.ci for details.
…m/skyrim-community-shaders into extended-translucency-fix
Automated formatting by clang-format, prettier, and other hooks. See https://pre-commit.ci for details.
|
✅ A pre-release build is available for this PR: |
|
This looks good to me, but we can give a few days to see if we get a comment from @ArcEarth. |
|
Looks amazing to me, always want to do this from the beginning but don't know how with my bad re ability 🤣 |
|
I assume this isn't related to the other bug you're chasing right? |
Yes unrelated. It's just something I found whilst looking at the code. |
Prevents running useless code when alpha blending is off. Fixes ForceDisabled being the wrong value on the CPU.
@ArcEarth