fix a small bug in pbr-ibl (#1099)
This commit is contained in:
parent
e37a333b0d
commit
e7834f48d1
2 changed files with 1 additions and 1 deletions
|
|
@ -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.
Loading…
Add table
Add a link
Reference in a new issue