-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Enable the use of all supported builtins on the light shader #76977
Conversation
a946327
to
f9fbb28
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.
Just one nitpicky comment, otherwise this looks great. Thank you!
servers/rendering/renderer_rd/shaders/forward_mobile/scene_forward_mobile_inc.glsl
Outdated
Show resolved
Hide resolved
f9fbb28
to
8f50fa9
Compare
servers/rendering/renderer_rd/shaders/scene_forward_lights_inc.glsl
Outdated
Show resolved
Hide resolved
When using the light process in spatial shader, the built-ins work as spected, now they work in forward+, mobile and compatibility renderer.
8f50fa9
to
e2321c2
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.
Looks great! Thank you!
Thanks! |
Can't get a clean cherry-pick because it touches code around #76290. It would probably be better to have a dedicated 4.0 PR if we want this fixed in there as well. |
Fix #76556 and fix #76861
When using the light process in spatial shader the built ins work as spected, now they work in forward+, mobile and compatibility renderer.
It is worth noting that I created a define named DRAW_CALL_PUSH_CONSTANT in scene_forward_mobile_inc.glsl to differenciate between forward+ and mobile renderer in scene_forward_lights_inc.glsl