armory/raw/deferred/shadowmap.vert.glsl
2016-03-22 23:35:54 +01:00

43 lines
527 B
GLSL

#version 450
#ifdef GL_ES
precision highp float;
#endif
#ifdef _NMTex
#define _AMTex
#endif
in vec3 pos;
in vec3 nor;
#ifdef _AMTex
in vec2 tex;
#endif
#ifdef _VCols
in vec4 col;
#endif
#ifdef _NMTex
in vec3 tan;
in vec3 bitan;
#endif
#ifdef _Skinning
in vec4 bone;
in vec4 weight;
#endif
#ifdef _Instancing
in vec3 off;
#endif
uniform mat4 LMVP;
out vec4 position;
void main() {
#ifdef _Instancing
gl_Position = LMVP * vec4(pos + off, 1.0);
#else
gl_Position = LMVP * vec4(pos, 1.0);
#endif
position = gl_Position;
}