diff options
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/lightprobe_cube_display_frag.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lightprobe_cube_display_frag.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/lightprobe_cube_display_frag.glsl b/source/blender/draw/engines/eevee/shaders/lightprobe_cube_display_frag.glsl index 5a72244cfbe..bd51546eadf 100644 --- a/source/blender/draw/engines/eevee/shaders/lightprobe_cube_display_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/lightprobe_cube_display_frag.glsl @@ -9,8 +9,9 @@ void main() float dist_sqr = dot(quadCoord, quadCoord); /* Discard outside the circle. */ - if (dist_sqr > 1.0) + if (dist_sqr > 1.0) { discard; + } vec3 view_nor = vec3(quadCoord, sqrt(max(0.0, 1.0 - dist_sqr))); vec3 world_ref = mat3(ViewMatrixInverse) * reflect(vec3(0.0, 0.0, -1.0), view_nor); |