blob: 70f5cd64e371e86c9837d8bea5b0feec413d68a5 [file] [log] [blame]
Jason Samse5f2f662012-05-16 15:43:25 -07001varying vec3 worldNormal;
2
3// This is where actual shader code begins
4void main() {
5 vec4 worldPos = UNI_model * ATTRIB_position;
6 gl_Position = UNI_proj * worldPos;
7
8 mat3 model3 = mat3(UNI_model[0].xyz, UNI_model[1].xyz, UNI_model[2].xyz);
9 worldNormal = model3 * ATTRIB_normal;
10}