armory/Shaders/world/world.vert.glsl

19 lines
225 B
Plaintext
Raw Normal View History

2016-01-28 00:58:00 +01:00
#version 450
2015-12-17 14:25:42 +01:00
#ifdef GL_ES
precision highp float;
#endif
2016-07-20 01:14:28 +02:00
in vec3 pos;
in vec3 nor;
2015-12-17 14:25:42 +01:00
2016-02-08 12:03:20 +01:00
out vec3 normal;
2016-03-29 16:50:51 +02:00
2016-07-20 01:14:28 +02:00
uniform mat4 SMVP;
2016-06-26 12:11:51 +02:00
2016-01-24 22:32:51 +01:00
void main() {
2016-07-20 01:14:28 +02:00
normal = nor;
vec4 position = SMVP * vec4(pos, 1.0);
gl_Position = vec4(position);
2015-12-17 14:25:42 +01:00
}