opengl2/src/single_color_translate.vp.glsl

11 lines
144 B
GLSL

#version 120
attribute vec3 position;
uniform float translate;
void main()
{
gl_Position = vec4(translate + position.x, position.yz, 1);
}