Source

gltut / Tut 09 Lights on / data / DirVertexLighting_PCN.vert

Diff from to

File Tut 09 Lights on/data/DirVertexLighting_PCN.vert

 uniform vec3 dirToLight;
 uniform vec4 lightIntensity;
 
-uniform mat4 cameraToClipMatrix;
 uniform mat4 modelToCameraMatrix;
+uniform mat3 normalModelToCameraMatrix;
 
-uniform mat3 normalModelToCameraMatrix;
+layout(std140) uniform Projection
+{
+	mat4 cameraToClipMatrix;
+};
 
 void main()
 {