diff options
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/vert/invariant.vert | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shaders/vert/invariant.vert b/shaders/vert/invariant.vert new file mode 100644 index 00000000..239b985d --- /dev/null +++ b/shaders/vert/invariant.vert @@ -0,0 +1,13 @@ +#version 310 es + +invariant gl_Position; +layout(location = 0) invariant out vec4 vColor; +layout(location = 0) in vec4 vInput0; +layout(location = 1) in vec4 vInput1; +layout(location = 2) in vec4 vInput2; + +void main() +{ + gl_Position = vInput0 + vInput1 * vInput2; + vColor = (vInput0 - vInput1) * vInput2; +} |