瀏覽代碼

Merge pull request #9354 from Nitwel/patch-1

Entering transparent pipeline when reading ALPHA
Max Hilbrunner 1 年之前
父節點
當前提交
abda5a1cfa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/shaders/shader_reference/spatial_shader.rst

+ 1 - 1
tutorials/shaders/shader_reference/spatial_shader.rst

@@ -331,7 +331,7 @@ these properties, and if you don't write to them, Godot will optimize away the c
 +----------------------------------------+--------------------------------------------------------------------------------------------------+
 | out vec3 **ALBEDO**                    | Albedo (default white).                                                                          |
 +----------------------------------------+--------------------------------------------------------------------------------------------------+
-| out float **ALPHA**                    | Alpha (0..1); if written to, the material will go to the transparent pipeline.                   |
+| out float **ALPHA**                    | Alpha (0..1); if read from or written to, the material will go to the transparent pipeline.      |
 +----------------------------------------+--------------------------------------------------------------------------------------------------+
 | out float **ALPHA_SCISSOR_THRESHOLD**  | If written to, values below a certain amount of alpha are discarded.                             |
 +----------------------------------------+--------------------------------------------------------------------------------------------------+