Browse Source

Merge pull request #1694 from Chaosus/fragcoord_fix

Fix FRAGCOORD in shading_language.rst
Rémi Verschelde 7 years ago
parent
commit
a438389c1f
1 changed files with 5 additions and 3 deletions
  1. 5 3
      tutorials/shading/shading_language.rst

+ 5 - 3
tutorials/shading/shading_language.rst

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