[Bf-blender-cvs] [2ef12c3bd7a] soc-2020-fluid-tools: Fluid: Initialised uniform booleans in workbench volume fragment shader

Sriharsha Kotcharlakot noreply at git.blender.org
Mon Jun 29 16:18:01 CEST 2020


Commit: 2ef12c3bd7a9406401a07ba1bdcd5e50d303da00
Author: Sriharsha Kotcharlakot
Date:   Mon Jun 29 19:47:46 2020 +0530
Branches: soc-2020-fluid-tools
https://developer.blender.org/rB2ef12c3bd7a9406401a07ba1bdcd5e50d303da00

Fluid: Initialised uniform booleans in workbench volume fragment shader

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

M	source/blender/draw/engines/workbench/shaders/workbench_volume_frag.glsl

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

diff --git a/source/blender/draw/engines/workbench/shaders/workbench_volume_frag.glsl b/source/blender/draw/engines/workbench/shaders/workbench_volume_frag.glsl
index 5ff2b08d7f2..b539b80f833 100644
--- a/source/blender/draw/engines/workbench/shaders/workbench_volume_frag.glsl
+++ b/source/blender/draw/engines/workbench/shaders/workbench_volume_frag.glsl
@@ -24,9 +24,9 @@ uniform vec3 activeColor;
 uniform float slicePosition;
 uniform int sliceAxis; /* -1 is no slice, 0 is X, 1 is Y, 2 is Z. */
 
-uniform bool showPhi;
-uniform bool showFlags;
-uniform bool showGridlines;
+uniform bool showPhi = false;
+uniform bool showFlags = false;
+uniform bool showGridlines = false;
 
 #ifdef VOLUME_SLICE
 in vec3 localPos;



More information about the Bf-blender-cvs mailing list