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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-01-21 20:19:31 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-01-27 11:36:30 +0300
commitdf07a25d2811c43648af3e9bf4cc44d255218d65 (patch)
tree9d2aa5889b536f3e5c706b57f4fd2b551e3bb66d /intern/cycles/render/shader.h
parentddc0d280311a442bb90790e7421d64ed60136d0d (diff)
Cycles: Support texture coordinate from another object
This is the same as blender internal's texture mapping from another object, so this way it's possible to control texture space of one object by another. Quite straightforward change apart from the workaround for the stupidness of the dependency graph. Now shader has flag telling that it depends on object transform. This is the simplest way to know which shaders needs to be tagged for update when object changes. This might give some false-positive tags now but reducing them should not be priority for Cycles and rather be a priority to bring new dependency graph. Also GLSL preview does not support using other object for mapping. This is actually correct for BI shading as well and to be addressed as a part of general GLSL viewport improvements since it's not really clear how to support this in GLSL. Reviewers: brecht, juicyfruit Subscribers: eyecandy, venomgfx Differential Revision: https://developer.blender.org/D1021
Diffstat (limited to 'intern/cycles/render/shader.h')
-rw-r--r--intern/cycles/render/shader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/shader.h b/intern/cycles/render/shader.h
index 1d903ee3a13..1dee47c7731 100644
--- a/intern/cycles/render/shader.h
+++ b/intern/cycles/render/shader.h
@@ -106,6 +106,7 @@ public:
bool has_converter_blackbody;
bool has_bssrdf_bump;
bool has_heterogeneous_volume;
+ bool has_object_dependency;
/* requested mesh attributes */
AttributeRequestSet attributes;