Skip to content

Commit

Permalink
fix a small bug in pbr-ibl (#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Mu authored Jan 21, 2024
1 parent e37a333 commit e7834f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shaders/glsl/pbribl/pbribl.frag
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void main()
F0 = mix(F0, ALBEDO, metallic);

vec3 Lo = vec3(0.0);
for(int i = 0; i < uboParams.lights[i].length(); i++) {
for(int i = 0; i < uboParams.lights.length(); i++) {
vec3 L = normalize(uboParams.lights[i].xyz - inWorldPos);
Lo += specularContribution(L, V, N, F0, metallic, roughness);
}
Expand Down
Binary file modified shaders/glsl/pbribl/pbribl.frag.spv
Binary file not shown.

0 comments on commit e7834f4

Please sign in to comment.