mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
Merge pull request #1834 from antoniotorresm/write-depth
Add DEPTH fragment built-in to shading language reference
This commit is contained in:
@@ -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. |
|
||||
|
||||
Reference in New Issue
Block a user