Rendu
A lightweight rendering engine for experimentations
|
Skybox infinity vertex shader. More...
Public Member Functions | |
void | main () |
Public Attributes | |
in vec3 | v |
Position. | |
uniform mat4 | mvp |
MVP transformation matrix. | |
out vec3 | pos |
Position in model space. | |
Skybox infinity vertex shader.
|
inline |
Apply the transformation to the input vertex, treating it as a vector to ignore the translation part and keep it centered. We also ensure the vertex will be set to the maximum depth by tweaking gl_Position.z.