|
Rendu
A lightweight rendering engine for experimentations
|
Object 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 | normalMatrix |
| Normal transformation matrix. | |
| uniform bool | hasUV |
| Does the mesh have texture coordinates. | |
| out mat4 | tbn |
| Normal to view matrix. | |
| out vec4 | uv |
| UV coordinateS. | |
Object gbuffer vertex shader.
|
inline |
Apply the transformation to the input vertex. Compute the tangent-to-view space transformation matrix.