|
Rendu
A lightweight rendering engine for experimentations
|
Image display vertex shader. More...
Public Member Functions | |
| void | main () |
Public Attributes | |
| in vec3 | v |
| Position. | |
| out vec2 | uv |
| Texture coordinates. | |
| uniform vec2 | flipAxis |
| Denotes if a flipping has been applied on each axis. | |
| uniform vec2 | angleTrig |
| Applied rotation precomputed cosine and sine. | |
| uniform vec2 | mouseShift |
| Translation. | |
| uniform float | screenRatio |
| Screen h/v ratio. | |
| uniform float | imageRatio |
| Image h/v ratio. | |
| uniform float | widthRatio |
| Image/screen width ratio. | |
| uniform float | pixelScale |
| Scaling. | |
Image display vertex shader.
|
inline |
Generate one triangle covering the whole screen and compute UV coordinates based on scaling/position/rotation.