Fix FRAGCOORD in shading_language.rst

This commit is contained in:
Chaosus
2018-08-20 11:05:04 +03:00
parent 5c21900fb4
commit 94116e5f6d

View File

@@ -791,6 +791,8 @@ Fragment Built-Ins
+----------------------------------+--------------------------------------------------------------------------------------------------+
| Built-In | Description |
+==================================+==================================================================================================+
| in vec4 **FRAGCOORD** | Fragment coordinate, pixel adjusted. |
+----------------------------------+--------------------------------------------------------------------------------------------------+
| in mat4 **WORLD_MATRIX** | Model space to world space transform. |
+----------------------------------+--------------------------------------------------------------------------------------------------+
| in mat4 **INV_CAMERA_MATRIX** | World space to view space transform. |
@@ -805,8 +807,6 @@ Fragment Built-Ins
+----------------------------------+--------------------------------------------------------------------------------------------------+
| in vec3 **VERTEX** | Vertex that comes from vertex function, in view space. |
+----------------------------------+--------------------------------------------------------------------------------------------------+
| in vec4 **FRAGCOORD** | Fragment coordinate, pixel adjusted. |
+----------------------------------+--------------------------------------------------------------------------------------------------+
| in bool **FRONT_FACING** | true whether current face is front face. |
+----------------------------------+--------------------------------------------------------------------------------------------------+
| out vec3 **NORMAL** | Normal that comes from vertex function, in view space. |
@@ -874,6 +874,8 @@ Light Built-Ins
+-----------------------------------+------------------------------------------+
| Built-in | Description |
+===================================+==========================================+
| in vec4 **FRAGCOORD** | Fragment coordinate, pixel adjusted. |
+-----------------------------------+------------------------------------------+
| in mat4 **WORLD_MATRIX** | Model space to world space transform. |
+-----------------------------------+------------------------------------------+
| in mat4 **INV_CAMERA_MATRIX** | World space to view space transform. |
@@ -1041,7 +1043,7 @@ Light Built-Ins
+-------------------------------------+-------------------------------------------------------------------------------+
| Built-In | Description |
+=====================================+===============================================================================+
| in vec2 **FRAGCOORD** | Fragment coordinate, pixel adjusted. |
| in vec4 **FRAGCOORD** | Fragment coordinate, pixel adjusted. |
+-------------------------------------+-------------------------------------------------------------------------------+
| in vec3 **NORMAL** | Input Normal. Although this value is passed in, |
| | **normal calculation still happens outside of this function**. |