浏览代码

Fixed description for fragment shader VIEW built-in

Andreas Raddau 2 年之前
父节点
当前提交
91d77a80fa
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.                                                              |
 +----------------------------------------+--------------------------------------------------------------------------------------------------+