Browse Source

Fix a shader bug from a prev commit

Panagiotis Christopoulos Charitos 8 years ago
parent
commit
2d5baf7087
1 changed files with 1 additions and 1 deletions
  1. 1 1
      shaders/FsCommonFrag.glsl

+ 1 - 1
shaders/FsCommonFrag.glsl

@@ -122,7 +122,7 @@ vec3 computeLightColor(vec3 diffCol)
 
 	// Find the cluster and then the light counts
 	uint clusterIdx = computeClusterIndex(
-		gl_FragCoord.xy / RENDERER_SIZE, u_near, u_far, fragPos.z, u_clusterCountX, u_clusterCountY);
+		gl_FragCoord.xy / RENDERER_SIZE, u_near, u_clustererMagic, fragPos.z, u_clusterCountX, u_clusterCountY);
 
 	uint idxOffset = u_clusters[clusterIdx];