diff --git a/tutorials/shading/shading_language.rst b/tutorials/shading/shading_language.rst index fdb1765de..57d082ae7 100644 --- a/tutorials/shading/shading_language.rst +++ b/tutorials/shading/shading_language.rst @@ -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**. |