Fix generation of irradiance map
This commit is contained in:
parent
269eb5f06c
commit
796d35d8b3
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ void main() {
|
||||||
}
|
}
|
||||||
st /= vec2(M_PI * 2.0, M_PI);
|
st /= vec2(M_PI * 2.0, M_PI);
|
||||||
|
|
||||||
irradiance += texture(source_panorama, st, source_mip_level).rgb * cos(theta) * sin(theta);
|
irradiance += textureLod(source_panorama, st, source_mip_level).rgb * cos(theta) * sin(theta);
|
||||||
num_samples++;
|
num_samples++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue