anaglym/shaders/wfobj.v.glsl
Josh Holtrop 8028654ff2 beginning migrate to shaders
add a few submodules
generate C file store with cfs_gen
remove FileLoader/TextureLoader
add initial color shaders for wfobj objects
2011-05-18 17:17:06 -04:00

17 lines
268 B
GLSL

uniform mat4 projection;
uniform mat4 modelview;
attribute vec3 pos;
attribute vec3 normal;
varying vec3 pos_i;
varying vec3 normal_i;
void main(void)
{
gl_Position = projection * modelview * vec4(pos, 1);
pos_i = gl_Position.xyz;
normal_i = normal;
}