From cbffc7499ef89cac19c07ee2116b8e1e5d38afe5 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Wed, 24 Sep 2014 12:52:19 +0200 Subject: Cycles: Shader Graph Optimization for Mix RGB nodes. Basically the same as AC2c58e96685e8, but for Mix RGB Shaders, in case we use the Mix type. This way the node can be used as texture switch for example, setting the Factor to 0.0 or 1.0, without wasting extra memory / render time. --- intern/cycles/render/graph.h | 1 + 1 file changed, 1 insertion(+) (limited to 'intern/cycles/render/graph.h') diff --git a/intern/cycles/render/graph.h b/intern/cycles/render/graph.h index 89a066195d6..7bfd51cdee3 100644 --- a/intern/cycles/render/graph.h +++ b/intern/cycles/render/graph.h @@ -76,6 +76,7 @@ enum ShaderNodeSpecialType { SHADER_SPECIAL_TYPE_NONE, SHADER_SPECIAL_TYPE_PROXY, SHADER_SPECIAL_TYPE_MIX_CLOSURE, + SHADER_SPECIAL_TYPE_MIX_RGB, /* Only Mix subtype */ SHADER_SPECIAL_TYPE_AUTOCONVERT, SHADER_SPECIAL_TYPE_GEOMETRY, SHADER_SPECIAL_TYPE_SCRIPT -- cgit v1.2.3