diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-04-04 00:04:39 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-04-04 00:13:05 +0400 |
commit | bd03e4cfe8f1d8e4d706e126f59e6b8ddf3688c5 (patch) | |
tree | 20c6ec373567a0c98497e486f1a8f87b2b06cf75 /intern/cycles/render/shader.h | |
parent | ab32a1807dd153723d26a7d53895ed071233dafc (diff) |
Cycles volume: detect homogeneous volume automatically in common cases.
In practice this means that if you don't connect a texture to your volume nodes
it will figure that out and render the node faster, rather than you having to
specify it manually.
Main weakness is custom OSL nodes where we have to assume it is heterogeneous
because we don't know what kind of data the node accesses.
Diffstat (limited to 'intern/cycles/render/shader.h')
-rw-r--r-- | intern/cycles/render/shader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/shader.h b/intern/cycles/render/shader.h index 5f87050fe19..874e8face7a 100644 --- a/intern/cycles/render/shader.h +++ b/intern/cycles/render/shader.h @@ -77,6 +77,7 @@ public: bool has_surface_bssrdf; bool has_converter_blackbody; bool has_bssrdf_bump; + bool has_heterogeneous_volume; /* requested mesh attributes */ AttributeRequestSet attributes; |