Skip to content

Commit 99da975

Browse files
authored
Entering transparent pipeline when reading ALPHA
It's just a minor change, but I got confused on why the material was still using the transparent pipeline even though I removed all writes to ALPHA. So adding this should clarify things.
1 parent 183d0e3 commit 99da975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/shaders/shader_reference/spatial_shader.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ these properties, and if you don't write to them, Godot will optimize away the c
330330
+----------------------------------------+--------------------------------------------------------------------------------------------------+
331331
| out vec3 **ALBEDO** | Albedo (default white). |
332332
+----------------------------------------+--------------------------------------------------------------------------------------------------+
333-
| out float **ALPHA** | Alpha (0..1); if written to, the material will go to the transparent pipeline. |
333+
| out float **ALPHA** | Alpha (0..1); if read from or written to, the material will go to the transparent pipeline. |
334334
+----------------------------------------+--------------------------------------------------------------------------------------------------+
335335
| out float **ALPHA_SCISSOR_THRESHOLD** | If written to, values below a certain amount of alpha are discarded. |
336336
+----------------------------------------+--------------------------------------------------------------------------------------------------+

0 commit comments

Comments
 (0)