浏览代码

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. |
 | 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.                                                          |
 | out vec2 **SCREEN_UV**           | Screen UV coordinate for current pixel.                                                          |
 +----------------------------------+--------------------------------------------------------------------------------------------------+
 +----------------------------------+--------------------------------------------------------------------------------------------------+
 | in vec2 **POINT_COORD**          | Point Coord for drawing points with POINT_SIZE.                                                  |
 | in vec2 **POINT_COORD**          | Point Coord for drawing points with POINT_SIZE.                                                  |