Homogeneous coordinates: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(new page) |
No edit summary |
||
Line 1: | Line 1: | ||
{{Stub}} |
|||
The <math>w</math> coordinate of a <tt>vec4</tt> indicates (and should be set according to) whether the <tt>vec</tt> refers to a vector or a point [https://community.khronos.org/t/glsl-why-is-gl-vertex-a-vec4/60193]: |
The <math>w</math> coordinate of a <tt>vec4</tt> indicates (and should be set according to) whether the <tt>vec</tt> refers to a vector or a point [https://community.khronos.org/t/glsl-why-is-gl-vertex-a-vec4/60193]: |
||
* <math>w = 0</math>: vector |
* <math>w = 0</math>: vector |
Revision as of 14:48, 25 February 2020
- This article is currently a stub; it means I'm aware it's short and I probably intend to expand on the subject in the future!
The coordinate of a vec4 indicates (and should be set according to) whether the vec refers to a vector or a point [1]:
- : vector
- : point