-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Update list of spatial shader render modes for Godot 4.4 #9691
Update list of spatial shader render modes for Godot 4.4 #9691
Conversation
| out float **PREMUL_ALPHA_FACTOR** | Premultiplied alpha factor. Only effective if ``render_mode blend_premul_alpha;`` is used. | | ||
| | This should be written to when using a *shaded* material with premultiplied alpha blending for | | ||
| | interaction with lighting. This is not required for unshaded materials. | | ||
+----------------------------------------+--------------------------------------------------------------------------------------------------+ |
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.
Any ideas of a concrete example? I've based this description on the existing class reference, but it's not really obvious how you're supposed to write to it in a typical shaded PBR material scenario.
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.
a74c89d
to
cce46dc
Compare
cce46dc
to
6001307
Compare
6001307
to
07c01f5
Compare
Rebased and fleshed out with more descriptions – everything is now documented 🙂 |
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.
Besides the one comment about vertex lighting, seems fine to merge from my user's understanding of shaders.
This also improves the documentation for existing render modes.
07c01f5
to
e43dd08
Compare
@tetrapod00 I'm going to go through this for grammar and spelling in a bit, any other changes you want before this is merged? |
@skyace65 No, that was the only thing; this looks good to merge now. |
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.
Spelling and grammar wise everything looks good
Thanks! |
This also improves the documentation for existing render modes.
specular_disabled
render mode in shaders does not make theSPECULAR
output zero godot#95102and closes Missing description on "Spatial shaders" page for "Fragment built-ins" - "in mat3 MODEL_NORMAL_MATRIX" #10522.
unshaded
render mode for quad in Advanced post-processing #9690.