armory/Shaders/world/world.vert.glsl
2016-10-25 13:01:20 +02:00

19 lines
225 B
GLSL
Executable file

#version 450
#ifdef GL_ES
precision highp float;
#endif
in vec3 pos;
in vec3 nor;
out vec3 normal;
uniform mat4 SMVP;
void main() {
normal = nor;
vec4 position = SMVP * vec4(pos, 1.0);
gl_Position = vec4(position);
}