Skip to content

Commit 1325a33

Browse files
authored
Merge pull request godotengine#8708 from jsjtxietian/patch-2
Update spatial_shader.rst to mention godot use the same VIEW vector for both perspective and orthogonal cameras.
2 parents 8ef6e86 + d8f2ce6 commit 1325a33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tutorials/shaders/shader_reference/spatial_shader.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ these properties, and if you don't write to them, Godot will optimize away the c
253253
+----------------------------------------+--------------------------------------------------------------------------------------------------+
254254
| in bool **FRONT_FACING** | ``true`` if current face if front face. |
255255
+----------------------------------------+--------------------------------------------------------------------------------------------------+
256-
| in vec3 **VIEW** | Normalized vector from fragment position to camera (in view space). |
256+
| in vec3 **VIEW** | Normalized vector from fragment position to camera (in view space). This is the same for both |
257+
| | perspective and orthogonal cameras. |
257258
+----------------------------------------+--------------------------------------------------------------------------------------------------+
258259
| in vec2 **UV** | UV that comes from vertex function. |
259260
+----------------------------------------+--------------------------------------------------------------------------------------------------+

0 commit comments

Comments
 (0)