src/scene/glsl/source/fallback.vs
raw| 1 | /* Fallback GLSL vertex shader. |
| 2 | |
| 3 | Used when we need a shader (e.g. because it is OpenGLES or |
| 4 | GLFeatures.EnableFixedFunction = false), |
| 5 | but the default shader did not compile. |
| 6 | You cannot leave the shader empty in OpenGLES. |
| 7 | */ |
| 8 | |
| 9 | uniform mat4 castle_ModelViewMatrix; |
| 10 | uniform mat4 castle_ProjectionMatrix; |
| 11 | attribute vec4 castle_Vertex; |
| 12 | |
| 13 | void main(void) |
| 14 | { |
| 15 | gl_Position = castle_ProjectionMatrix * (castle_ModelViewMatrix * castle_Vertex); |
| 16 | } |