EEVEE: Volume: Fix error in fallback integration algo

This commit is contained in:
Clément Foucault 2019-09-10 21:50:25 +02:00
parent caf494444c
commit f1b52ef211
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ void main()
int slice = textureSize(volumeScattering, 0).z;
ivec2 texco = ivec2(gl_FragCoord.xy);
#endif
for (int i = 0; i < slice; i++) {
for (int i = 0; i <= slice; i++) {
ivec3 volume_cell = ivec3(gl_FragCoord.xy, i);
vec3 Lscat = texelFetch(volumeScattering, volume_cell, 0).rgb;