Rendu
A lightweight rendering engine for experimentations
|
Object parallax gbuffer vertex shader. More...
Public Member Functions | |
void | main () |
Public Attributes | |
in vec3 | v |
Position. | |
in vec3 | n |
Normal. | |
in vec2 | uv |
Texture coordinates. | |
in vec3 | tang |
Tangent. | |
in vec3 | bitan |
Bitangent. | |
uniform mat4 | mvp |
MVP transformation matrix. | |
uniform mat4 | mv |
MV transformation matrix. | |
uniform mat4 | normalMatrix |
Normal transformation matrix. | |
out mat4 | tbn |
Normal to view matrix. | |
out vec4 | tangentSpacePosition |
Tangent space position. | |
out vec4 | viewSpacePosition |
View space position. | |
out vec2 | uv |
UV coordinates. | |
Object parallax gbuffer vertex shader.
|
inline |
Apply the transformation to the input vertex. Compute the tangent-to-view space transformation matrix. Output the view space and tangent space positions of the vertex.