13 lines
242 B
GLSL
Executable file
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;
|
|
}
|