-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add shadows_disabled
macro in Compatibility renderer
#84416
Conversation
9b674f8
to
fb95d7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me.
Let's merge this for 4.3 as we are in the final stages of 4.2. We can cherrypick this for 4.2.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some accidental changes that should be restored
fb95d7d
to
3867899
Compare
3867899
to
716fd3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally. This PR breaks rendering in an empty project with a few meshes, even if they have no material assigned: test_pr_84416.zip
ERROR: SceneShaderGLES3: Fragment shader compilation failed:
0(1540) : error C7102: unmatched #endif
at: _display_error_with_code (drivers/gles3/shader_gles3.cpp:252)
Hi @Calinou Did you use the last commit, I do miss a macro there when try to fix the clang format issue. This one is broken and the latest one is fine: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested latest revision, it works as expected. Enabling Disable Receive Shadows on the material correctly disables shadow receiving for that material for all light types.
Thanks! I will try not to update my llvm too aggressively next time :( |
shadows_disabled
macro in Compatibility renderer
Thanks! |
Cherry-picked for 4.2.1. |
Fixes #84386