diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-02 22:37:05 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-02 22:45:30 +0400 |
commit | faa10d1ced8ec74319f0acbd2d789345beced008 (patch) | |
tree | dd50a0c8ff2f41d77252ba1a33c7465bb7be982d /intern/cycles/render/mesh.h | |
parent | e64ecaea4a93274147a6e5fc36a44ed42a7cd27f (diff) |
Cycles: optimization of panoramic camera in volume
Now we do much better preliminary check for panoramic camera is inside the
volume object boundings.
Also we're now cacheing the has_volume in the mesh, which makes it unneeded
iterations for each object's shaders.
Should be no functional changes, just faster sync and panoramic-in-volume
rendering.
Diffstat (limited to 'intern/cycles/render/mesh.h')
-rw-r--r-- | intern/cycles/render/mesh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/render/mesh.h b/intern/cycles/render/mesh.h index 28cee5745ea..7e34b761faf 100644 --- a/intern/cycles/render/mesh.h +++ b/intern/cycles/render/mesh.h @@ -79,6 +79,8 @@ public: vector<uint> shader; vector<bool> smooth; + bool has_volume; /* Set in the device_update(). */ + vector<float4> curve_keys; /* co + radius */ vector<Curve> curves; |