Переглянути джерело

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.                                                  |