Skip to content
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

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

manueldun
Copy link
Contributor

@manueldun manueldun commented May 11, 2023

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

Copy link
Member

@clayjohn clayjohn left a 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!

When using the light process in spatial shader,
the built-ins work as spected, now they work in forward+,
mobile and compatibility renderer.
Copy link
Member

@clayjohn clayjohn left a 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!

@akien-mga akien-mga merged commit 9ce42d1 into godotengine:master Jun 9, 2023
@akien-mga
Copy link
Member

Thanks!

@manueldun manueldun deleted the light-shader-builtins branch June 9, 2023 09:16
@YuriSizov
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants