ソースを参照

Add DEPTH fragment built-in

Antonio Torres Moríñigo 7 年 前
コミット
410eb1d271
1 ファイル変更2 行追加0 行削除
  1. 2 0
      tutorials/shading/shading_language.rst

+ 2 - 0
tutorials/shading/shading_language.rst

@@ -872,6 +872,8 @@ Fragment Built-Ins
 +----------------------------------+--------------------------------------------------------------------------------------------------+
 | sampler2D **DEPTH_TEXTURE**      | Built-in Texture for reading depth from the screen. Must convert to linear using INV_PROJECTION. |
 +----------------------------------+--------------------------------------------------------------------------------------------------+
+| out float **DEPTH**              | Custom depth value (0..1).                                                                       |
++----------------------------------+--------------------------------------------------------------------------------------------------+
 | out vec2 **SCREEN_UV**           | Screen UV coordinate for current pixel.                                                          |
 +----------------------------------+--------------------------------------------------------------------------------------------------+
 | in vec2 **POINT_COORD**          | Point Coord for drawing points with POINT_SIZE.                                                  |