diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-12 10:51:06 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-12 10:51:06 +0400 |
commit | 3759c10e5c832672920daf80b0f1018604cfb4b4 (patch) | |
tree | 1e7dc95b5a192213ea2f26927228e9fe173e5af4 /intern/cycles/render/graph.h | |
parent | cf723e5e7c99cf653196b47afe131cb3cac24050 (diff) |
Fix #33485: cycles OSL now autodetects the presence of emission and transparent
closures to enable multiple importance sampling and transparent shadows.
Diffstat (limited to 'intern/cycles/render/graph.h')
-rw-r--r-- | intern/cycles/render/graph.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/render/graph.h b/intern/cycles/render/graph.h index b79167839ab..61b5bd83534 100644 --- a/intern/cycles/render/graph.h +++ b/intern/cycles/render/graph.h @@ -183,6 +183,9 @@ public: virtual void compile(SVMCompiler& compiler) = 0; virtual void compile(OSLCompiler& compiler) = 0; + virtual bool has_surface_emission() { return false; } + virtual bool has_surface_transparent() { return false; } + vector<ShaderInput*> inputs; vector<ShaderOutput*> outputs; |