armory/Sources/Shaders/deferred_pass.vert.glsl
2016-01-03 19:41:00 +01:00

17 lines
259 B
GLSL

#ifdef GL_ES
precision highp float;
#endif
attribute vec2 pos;
varying vec2 texCoord;
const vec2 madd = vec2(0.5, 0.5);
void kore() {
// Scale vertex attribute to [0-1] range
texCoord = pos.xy * madd + madd;
gl_Position = vec4(pos.xy, 0.0, 1.0);
}