[Bf-blender-cvs] [ec9330d2064] blender2.8: Eevee: Fix default closure to match cycles.
Clément Foucault
noreply at git.blender.org
Tue Jul 11 12:46:16 CEST 2017
Commit: ec9330d206494a934df64d52f133c920d2ea41d3
Author: Clément Foucault
Date: Tue Jul 11 01:11:25 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBec9330d206494a934df64d52f133c920d2ea41d3
Eevee: Fix default closure to match cycles.
===================================================================
M source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl
M source/blender/gpu/shaders/gpu_shader_material.glsl
===================================================================
diff --git a/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl b/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl
index ceed99a7b80..f3f9d8af7f0 100644
--- a/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl
+++ b/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl
@@ -68,7 +68,7 @@ struct Closure {
float opacity;
};
-#define CLOSURE_DEFAULT Closure(vec3(0.0), 0.0)
+#define CLOSURE_DEFAULT Closure(vec3(0.0), 1.0)
Closure closure_mix(Closure cl1, Closure cl2, float fac)
{
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index dbd3a941e57..81f70332876 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -21,7 +21,7 @@ struct Closure {
float opacity;
};
-#define CLOSURE_DEFAULT Closure(vec3(0.0), 0.0)
+#define CLOSURE_DEFAULT Closure(vec3(0.0), 1.0)
Closure closure_mix(Closure cl1, Closure cl2, float fac)
{
More information about the Bf-blender-cvs
mailing list