Browse Source

Merge pull request #1443 from clayjohn/screen_pixel_size

Clarified Description of SCREEN_PIXEL_SIZE
Max Hilbrunner 7 năm trước cách đây
mục cha
commit
288401d9ba
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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_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.                                 |
 +----------------------------------+----------------------------------------------------------------+