diff options
Diffstat (limited to 'intern/cycles/render')
-rw-r--r-- | intern/cycles/render/graph.h | 1 | ||||
-rw-r--r-- | intern/cycles/render/shader.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/render/graph.h b/intern/cycles/render/graph.h index f0fd789c6bd..1d1701b30a2 100644 --- a/intern/cycles/render/graph.h +++ b/intern/cycles/render/graph.h @@ -157,6 +157,7 @@ public: virtual bool has_object_dependency() { return false; } virtual bool has_integrator_dependency() { return false; } virtual bool has_volume_support() { return false; } + virtual bool has_raytrace() { return false; } vector<ShaderInput*> inputs; vector<ShaderOutput*> outputs; diff --git a/intern/cycles/render/shader.cpp b/intern/cycles/render/shader.cpp index 70f6d5bab47..abb9e19a074 100644 --- a/intern/cycles/render/shader.cpp +++ b/intern/cycles/render/shader.cpp @@ -592,6 +592,9 @@ void ShaderManager::get_requested_graph_features(ShaderGraph *graph, if(node->has_surface_transparent()) { requested_features->use_transparent = true; } + if(node->has_raytrace()) { + requested_features->use_shader_raytrace = true; + } } } |