Skip to content

Commit 099307f

Browse files
authored
Merge pull request #11476 from Calinou/spatial-shader-vertex-color
Document `COLOR` built-in limitations in Spatial shader
2 parents d6267ea + a34efc8 commit 099307f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tutorials/shaders/shader_reference/spatial_shader.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,13 @@ shader, this value can be used as desired.
294294
+----------------------------------------+--------------------------------------------------------+
295295
| inout vec2 **UV2** | UV secondary channel. |
296296
+----------------------------------------+--------------------------------------------------------+
297-
| inout vec4 **COLOR** | Color from vertices. |
297+
| inout vec4 **COLOR** | Color from vertices. Limited to values between ``0.0`` |
298+
| | and ``1.0`` for each channel and 8 bits per channel |
299+
| | precision (256 possible levels). Alpha channel is |
300+
| | supported. Values outside the allowed range are |
301+
| | clamped, and values may be rounded due to precision |
302+
| | limitations. Use ``CUSTOM0``-``CUSTOM3`` to pass data |
303+
| | with more precision if needed. |
298304
+----------------------------------------+--------------------------------------------------------+
299305
| out float **ROUGHNESS** | Roughness for vertex lighting. |
300306
+----------------------------------------+--------------------------------------------------------+

0 commit comments

Comments
 (0)