|
Rendu
A lightweight rendering engine for experimentations
|
Object basic lit vertex shader. More...
Public Member Functions | |
| void | main () |
Public Attributes | |
| in vec3 | v |
| Position. | |
| in vec3 | n |
| Normal. | |
| uniform mat4 | mvp |
| The transformation matrix. | |
| out vec3 | vn |
| World space normal. | |
Object basic lit vertex shader.
|
inline |
Apply the transformation to the input vertex. Compute the world space normal.