Merge pull request #1834 from antoniotorresm/write-depth

Add DEPTH fragment built-in to shading language reference
This commit is contained in:
Max Hilbrunner
2018-10-21 21:52:59 +02:00
committed by GitHub
+2
View File
@@ -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. |