Browse Source

Fixed description for fragment shader VIEW built-in

Andreas Raddau 2 years ago
parent
commit
91d77a80fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/shaders/shader_reference/spatial_shader.rst

+ 1 - 1
tutorials/shaders/shader_reference/spatial_shader.rst

@@ -249,7 +249,7 @@ these properties, and if you don't write to them, Godot will optimize away the c
 +----------------------------------------+--------------------------------------------------------------------------------------------------+
 | in bool **FRONT_FACING**               | ``true`` if current face if front face.                                                          |
 +----------------------------------------+--------------------------------------------------------------------------------------------------+
-| in vec3 **VIEW**                       | Vector from camera to fragment position (in view space).                                         |
+| in vec3 **VIEW**                       | Normalized vector from fragment position to camera (in view space).                              |
 +----------------------------------------+--------------------------------------------------------------------------------------------------+
 | in vec2 **UV**                         | UV that comes from vertex function.                                                              |
 +----------------------------------------+--------------------------------------------------------------------------------------------------+