Skip to content

Document use_debanding render mode in Spatial shader and Sky shader #8795

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions tutorials/shaders/shader_reference/sky_shader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,17 @@ a lower resolution than the rest of the sky:
}
}

+--------------------------+-----------------------------------------------------------------------+
| Render mode | Description |
+==========================+=======================================================================+
| **use_half_res_pass** | Allows the shader to write to and access the half resolution pass. |
+--------------------------+-----------------------------------------------------------------------+
| **use_quarter_res_pass** | Allows the shader to write to and access the quarter resolution pass. |
+--------------------------+-----------------------------------------------------------------------+
| **disable_fog** | If used, fog will not affect the sky. |
+--------------------------+-----------------------------------------------------------------------+
+--------------------------+------------------------------------------------------------------------------------+
| Render mode | Description |
+==========================+====================================================================================+
| **use_half_res_pass** | Allows the shader to write to and access the half resolution pass. |
+--------------------------+------------------------------------------------------------------------------------+
| **use_quarter_res_pass** | Allows the shader to write to and access the quarter resolution pass. |
+--------------------------+------------------------------------------------------------------------------------+
| **disable_fog** | If used, fog will not affect the sky. |
+--------------------------+------------------------------------------------------------------------------------+
| **use_debanding** | Use debanding on the sky to reduce color banding. Useful for skies with gradients. |
+--------------------------+------------------------------------------------------------------------------------+

Built-ins
^^^^^^^^^
Expand Down
4 changes: 3 additions & 1 deletion tutorials/shaders/shader_reference/spatial_shader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ Render modes
+-------------------------------+------------------------------------------------------------------------------------------------------+
| **alpha_to_coverage_and_one** | Alpha antialiasing mode, see `here <https://github.com/godotengine/godot/pull/40364>`_ for more. |
+-------------------------------+------------------------------------------------------------------------------------------------------+
| **fog_disabled** | Disable receiving depth-based or volumetric fog. Useful for blend_add materials like particles. |
| **fog_disabled** | Disable receiving depth-based or volumetric fog. Useful for ``blend_add`` materials like particles. |
+-------------------------------+------------------------------------------------------------------------------------------------------+
| **use_debanding** | Use material-based debanding to reduce color banding. Useful for lit stylized materials. |
+-------------------------------+------------------------------------------------------------------------------------------------------+

Built-ins
Expand Down