Archived
1
Fork 0
This repository has been archived on 2025-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
jgl-template/GLGameTemplate/Shaders/basic_shader.vsh
2013-01-05 12:41:46 +01:00

13 lines
242 B
GLSL
Executable file

attribute vec4 position;
attribute vec4 color;
varying lowp vec4 colorVarying;
uniform mat4 modelViewProjectionMatrix;
uniform mat3 normalMatrix;
void main() {
gl_Position = modelViewProjectionMatrix * position;
colorVarying = color;
}