Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-08-08 19:34:25 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-08-08 22:27:26 +0300
commitcac43e1765ab128880bd410d3b8387dc7143f740 (patch)
tree85277c7c6230bda86381266406e46ca85e3a78f0 /source/blender/gpu/GPU_material.h
parent26d46d00cfa73efe8e434796634dd23e76abbf19 (diff)
Eevee: Use "constant folding" for the principle shader
This is more like a static optimisation when some parameters are set to 1.0 or 0.0. In theses case we use a more optimized version of the node. This also revisit the transmission parameter behaviour to make it closer to cycles.
Diffstat (limited to 'source/blender/gpu/GPU_material.h')
-rw-r--r--source/blender/gpu/GPU_material.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_material.h b/source/blender/gpu/GPU_material.h
index cc1150b6d77..9dcf308a414 100644
--- a/source/blender/gpu/GPU_material.h
+++ b/source/blender/gpu/GPU_material.h
@@ -128,6 +128,7 @@ typedef enum GPUMatFlag {
GPU_MATFLAG_DIFFUSE = (1 << 0),
GPU_MATFLAG_GLOSSY = (1 << 1),
GPU_MATFLAG_REFRACT = (1 << 2),
+ GPU_MATFLAG_SSS = (1 << 3),
} GPUMatFlag;
typedef enum GPUBlendMode {