third_party/spirv-cross/shaders/vert/invariant.vert
raw| 1 | #version 310 es |
| 2 | |
| 3 | invariant gl_Position; |
| 4 | layout(location = 0) invariant out vec4 vColor; |
| 5 | layout(location = 0) in vec4 vInput0; |
| 6 | layout(location = 1) in vec4 vInput1; |
| 7 | layout(location = 2) in vec4 vInput2; |
| 8 | |
| 9 | void main() |
| 10 | { |
| 11 | gl_Position = vInput0 + vInput1 * vInput2; |
| 12 | vColor = (vInput0 - vInput1) * vInput2; |
| 13 | } |