[Bf-blender-cvs] [91808a67e8d] blender2.8: Eevee: Volumetrics: Fix enum flag.

Clément Foucault noreply at git.blender.org
Wed Jul 5 22:17:13 CEST 2017


Commit: 91808a67e8d5c0b16fb7580a6cab771f0e2d9a0d
Author: Clément Foucault
Date:   Wed Jul 5 22:16:48 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB91808a67e8d5c0b16fb7580a6cab771f0e2d9a0d

Eevee: Volumetrics: Fix enum flag.

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

M	source/blender/draw/engines/eevee/eevee_private.h

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

diff --git a/source/blender/draw/engines/eevee/eevee_private.h b/source/blender/draw/engines/eevee/eevee_private.h
index 6175b656521..7f45e72c713 100644
--- a/source/blender/draw/engines/eevee/eevee_private.h
+++ b/source/blender/draw/engines/eevee/eevee_private.h
@@ -48,14 +48,14 @@ extern struct DrawEngineType draw_engine_eevee_type;
 
 /* World shader variations */
 enum {
-	VAR_VOLUME_SHADOW     = (1 << 0),
-	VAR_VOLUME_HOMO       = (1 << 1),
-	VAR_VOLUME_LIGHT      = (1 << 2),
-	VAR_VOLUME_COLOR      = (1 << 3),
-
-	VAR_WORLD_BACKGROUND    = 16,
-	VAR_WORLD_PROBE         = 17,
-	VAR_WORLD_VOLUME        = 18,
+	VAR_WORLD_BACKGROUND    = 0,
+	VAR_WORLD_PROBE         = 1,
+	VAR_WORLD_VOLUME        = 2,
+
+	VAR_VOLUME_SHADOW     = (1 << 2),
+	VAR_VOLUME_HOMO       = (1 << 3),
+	VAR_VOLUME_LIGHT      = (1 << 4),
+	VAR_VOLUME_COLOR      = (1 << 5),
 };
 
 /* Material shader variations */




More information about the Bf-blender-cvs mailing list