Skip to content

Update list of spatial shader render modes for Godot 4.4 - #9691

Merged
skyace65 merged 1 commit into
godotengine:masterfrom
Calinou:spatial-shader-update-render-modes
Jan 25, 2025
Merged

Update list of spatial shader render modes for Godot 4.4#9691
skyace65 merged 1 commit into
godotengine:masterfrom
Calinou:spatial-shader-update-render-modes

Conversation

@Calinou

@Calinou Calinou commented Aug 1, 2024

Copy link
Copy Markdown
Member

@Calinou Calinou added enhancement area:manual Issues and PRs related to the Manual/Tutorials section of the documentation topic:shaders labels Aug 1, 2024
Comment on lines +354 to +388
| 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. |
+----------------------------------------+--------------------------------------------------------------------------------------------------+

Copy link
Copy Markdown
Member Author

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread tutorials/shaders/shader_reference/spatial_shader.rst Outdated
@Calinou

Calinou commented Jan 24, 2025

Copy link
Copy Markdown
Member Author

Rebased and fleshed out with more descriptions – everything is now documented 🙂

@tetrapod00 tetrapod00 left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread tutorials/shaders/shader_reference/spatial_shader.rst Outdated
This also improves the documentation for existing render modes.
@Calinou
Calinou force-pushed the spatial-shader-update-render-modes branch from 07c01f5 to e43dd08 Compare January 25, 2025 17:43
@skyace65 skyace65 changed the title Update list of spatial shader render modes for Godot 4.3 Update list of spatial shader render modes for Godot 4.4 Jan 25, 2025
@skyace65
skyace65 requested a review from tetrapod00 January 25, 2025 17:55
@skyace65

Copy link
Copy Markdown
Member

@tetrapod00 I'm going to go through this for grammar and spelling in a bit, any other changes you want before this is merged?

@tetrapod00

Copy link
Copy Markdown
Contributor

@skyace65 No, that was the only thing; this looks good to merge now.

@skyace65 skyace65 left a comment

Copy link
Copy Markdown
Member

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

@skyace65
skyace65 merged commit 6d965b1 into godotengine:master Jan 25, 2025
@skyace65

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:manual Issues and PRs related to the Manual/Tutorials section of the documentation enhancement topic:shaders

Projects

None yet

5 participants