mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Merge pull request #8708 from jsjtxietian/patch-2
Update spatial_shader.rst to mention godot use the same VIEW vector for both perspective and orthogonal cameras.
This commit is contained in:
committed by
Max Hilbrunner
parent
5f40815288
commit
c9c73be72d
@@ -253,7 +253,8 @@ 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** | Normalized vector from fragment position to camera (in view space). |
|
||||
| in vec3 **VIEW** | Normalized vector from fragment position to camera (in view space). This is the same for both |
|
||||
| | perspective and orthogonal cameras. |
|
||||
+----------------------------------------+--------------------------------------------------------------------------------------------------+
|
||||
| in vec2 **UV** | UV that comes from vertex function. |
|
||||
+----------------------------------------+--------------------------------------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user