[Bf-blender-cvs] [21ec254ae2b] blender2.8: Eevee : Light Grid : Init grid to black instead of world color.

Clément Foucault noreply at git.blender.org
Mon Oct 2 18:42:32 CEST 2017


Commit: 21ec254ae2bf128510a5c49ffbada9ac04e7bf95
Author: Clément Foucault
Date:   Mon Oct 2 17:40:24 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB21ec254ae2bf128510a5c49ffbada9ac04e7bf95

Eevee : Light Grid : Init grid to black instead of world color.

This was a mistake to use world color because it introduce light bleeding on indoor environement.

===================================================================

M	source/blender/draw/engines/eevee/shaders/lightprobe_grid_fill_frag.glsl

===================================================================

diff --git a/source/blender/draw/engines/eevee/shaders/lightprobe_grid_fill_frag.glsl b/source/blender/draw/engines/eevee/shaders/lightprobe_grid_fill_frag.glsl
index c25e717e322..292d23deecd 100644
--- a/source/blender/draw/engines/eevee/shaders/lightprobe_grid_fill_frag.glsl
+++ b/source/blender/draw/engines/eevee/shaders/lightprobe_grid_fill_frag.glsl
@@ -13,5 +13,8 @@ void main()
 #endif
 	ivec2 coord = ivec2(gl_FragCoord.xy) % data_size;
 	FragColor = texelFetch(gridTexture, coord, 0);
-	// FragColor = vec4(1.0, 0.0, 0.0, 1.0);
+
+	if (any(greaterThan(ivec2(gl_FragCoord.xy), data_size))) {
+		FragColor = vec4(0.0, 0.0, 0.0, 1.0);
+	}
 }
\ No newline at end of file



More information about the Bf-blender-cvs mailing list