Jason Sams e5f2f66f8c Move gfx samples to test directory for compatibility testing.
Change-Id: Iede1c0a14abf9aa3f31ab219fba3bf3a15ef8c90
2012-05-16 15:43:25 -07:00

11 lines
291 B
GLSL

varying vec3 worldNormal;
// This is where actual shader code begins
void main() {
vec4 worldPos = UNI_model * ATTRIB_position;
gl_Position = UNI_proj * worldPos;
mat3 model3 = mat3(UNI_model[0].xyz, UNI_model[1].xyz, UNI_model[2].xyz);
worldNormal = model3 * ATTRIB_normal;
}