Document writing shaders that work in multiple renderers #10204
Labels
area:manual
Issues and PRs related to the Manual/Tutorials section of the documentation
enhancement
topic:shaders
Your Godot version:
4.4
Issue description:
Since godotengine/godot#97142 allowed falling back from Vulkan/D3D12/Metal to OpenGL, it is now more expected that rendering, including shaders, works on multiple renderers.
We should document writing shaders that work in multiple renderers, using
OUTPUT_SRGB
,CLIP_SPACE_FAR
, and/orCURRENT_RENDERER
(once godotengine/godot#98549 is merged).This is currently half-documented in two places:
Changes to make:
CLIP_SPACE_FAR
to create correct NDCs for all renderers.URL to the documentation page (if already existing):
https://docs.godotengine.org/en/latest/tutorials/migrating/upgrading_to_godot_4.html#updating-shaders
https://docs.godotengine.org/en/latest/tutorials/shaders/advanced_postprocessing.html
The text was updated successfully, but these errors were encountered: