fix a small bug in pbr-ibl (#1099)

This commit is contained in:
MuWu 2024-01-21 21:15:20 +08:00 committed by GitHub
parent e37a333b0d
commit e7834f48d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View file

@ -128,7 +128,7 @@ void main()
F0 = mix(F0, ALBEDO, metallic); F0 = mix(F0, ALBEDO, metallic);
vec3 Lo = vec3(0.0); 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); vec3 L = normalize(uboParams.lights[i].xyz - inWorldPos);
Lo += specularContribution(L, V, N, F0, metallic, roughness); Lo += specularContribution(L, V, N, F0, metallic, roughness);
} }

Binary file not shown.