Skip to content

Commit ce65dd6

Browse files
committed
Document COLOR built-in limitations in Spatial shader
1 parent d6267ea commit ce65dd6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tutorials/shaders/shader_reference/spatial_shader.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,12 @@ 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. |
298303
+----------------------------------------+--------------------------------------------------------+
299304
| out float **ROUGHNESS** | Roughness for vertex lighting. |
300305
+----------------------------------------+--------------------------------------------------------+

0 commit comments

Comments
 (0)