Mulitple point lights

This commit is contained in:
Emmanuel BENOîT 2017-10-05 15:05:05 +02:00
parent 52bf5cd3fc
commit ba7595d781
3 changed files with 62 additions and 20 deletions
shaders/chunks

View file

@ -6,9 +6,8 @@ layout( location = 2 ) uniform vec3 u_CamPos;
layout( location = 3 ) uniform vec3 u_LookAt;
layout( location = 4 ) uniform vec3 u_CamUp;
layout( location = 5 ) uniform float u_NearPlane;
layout( location = 6 ) uniform vec3 u_LightDir;
layout( location = 7 ) uniform vec4 u_Render;
layout( location = 8 ) uniform float u_FogAttenuation;
layout( location = 6 ) uniform vec4 u_Render;
layout( location = 7 ) uniform float u_FogAttenuation;
layout( location = 0 ) out vec3 o_Color;
layout( location = 1 ) out float o_Z;