Browse Source

Merge pull request #1641 from isaacremnant/shading_typo

Update canvas_item's light built-in POSITION to FRAGCOORD
Chris Bradfield 7 years ago
parent
commit
b872e27e32
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/shading/shading_language.rst

+ 1 - 1
tutorials/shading/shading_language.rst

@@ -1041,7 +1041,7 @@ Light Built-Ins
 +-------------------------------------+-------------------------------------------------------------------------------+
 +-------------------------------------+-------------------------------------------------------------------------------+
 | Built-In                            | Description                                                                   |
 | Built-In                            | Description                                                                   |
 +=====================================+===============================================================================+
 +=====================================+===============================================================================+
-| in vec2 **POSITION**                | Fragment coordinate, pixel adjusted.                                          |
+| in vec2 **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**.                |