Explorar el Código

Merge pull request #1443 from clayjohn/screen_pixel_size

Clarified Description of SCREEN_PIXEL_SIZE
Max Hilbrunner hace 7 años
padre
commit
2f7c18f078
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tutorials/shading/shading_language.rst

+ 1 - 1
tutorials/shading/shading_language.rst

@@ -1022,7 +1022,7 @@ Fragment Built-Ins
 +----------------------------------+----------------------------------------------------------------+
 +----------------------------------+----------------------------------------------------------------+
 | in vec2 **SCREEN_UV**            | Screen UV for use with SCREEN_TEXTURE.                         |
 | in vec2 **SCREEN_UV**            | Screen UV for use with SCREEN_TEXTURE.                         |
 +----------------------------------+----------------------------------------------------------------+
 +----------------------------------+----------------------------------------------------------------+
-| in vec2 **SCREEN_PIXEL_SIZE**    | Screen pixel size.                                             |
+| in vec2 **SCREEN_PIXEL_SIZE**    | Size of individual pixels. Equal to inverse of resolution.     |
 +----------------------------------+----------------------------------------------------------------+
 +----------------------------------+----------------------------------------------------------------+
 | in vec2 **POINT_COORD**          | Coordinate for drawing points.                                 |
 | in vec2 **POINT_COORD**          | Coordinate for drawing points.                                 |
 +----------------------------------+----------------------------------------------------------------+
 +----------------------------------+----------------------------------------------------------------+