diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-04-13 16:58:12 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-04-13 16:58:12 +0400 |
commit | 88a261c13b8ac203e2a7ea936cd8b277b8a07c9f (patch) | |
tree | 1648b66a0eff11279a52c07cee7f94d4d742b57d /intern/cycles/render/shader.cpp | |
parent | 11d24cb58f527884bfbb36fdff70c016d50c919c (diff) |
Cycles: add render layer use environment option to disable world lighting on
individual render layers.
Diffstat (limited to 'intern/cycles/render/shader.cpp')
-rw-r--r-- | intern/cycles/render/shader.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/intern/cycles/render/shader.cpp b/intern/cycles/render/shader.cpp index 2afa1dd5037..c1f7b3518d2 100644 --- a/intern/cycles/render/shader.cpp +++ b/intern/cycles/render/shader.cpp @@ -272,6 +272,17 @@ void ShaderManager::add_default(Scene *scene) scene->shaders.push_back(shader); scene->default_holdout = scene->shaders.size() - 1; } + + /* default empty */ + { + graph = new ShaderGraph(); + + shader = new Shader(); + shader->name = "default_empty"; + shader->graph = graph; + scene->shaders.push_back(shader); + scene->default_empty = scene->shaders.size() - 1; + } } CCL_NAMESPACE_END |