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:
authorMatt Ebb <matt@mke3.net>2010-07-22 15:54:12 +0400
committerMatt Ebb <matt@mke3.net>2010-07-22 15:54:12 +0400
commit5d2e08cdee2bf5fd546a08eef4bdcbcc2f63d665 (patch)
tree000d8e15a19f86bf935469dd9d22fd243f765099 /source/blender/render/intern/include/volume_precache.h
parent33cb2f93ff2e02ac45c20e6b4251a48600a83cb0 (diff)
Fix for volume render light cache:
Now the bounding box for the light cache's voxel grid is calculated in global space, rather than camera space as it was previously. This fixes flickering lighting on static volumes with camera motion, caused by the camera space bounding box changing from frame to frame.
Diffstat (limited to 'source/blender/render/intern/include/volume_precache.h')
-rw-r--r--source/blender/render/intern/include/volume_precache.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/render/intern/include/volume_precache.h b/source/blender/render/intern/include/volume_precache.h
index 73e0a3e0415..3ddf8380241 100644
--- a/source/blender/render/intern/include/volume_precache.h
+++ b/source/blender/render/intern/include/volume_precache.h
@@ -25,9 +25,11 @@
*
* ***** END GPL LICENSE BLOCK *****
*/
-
+
+void global_bounds_obi(Render *re, ObjectInstanceRen *obi, float *bbmin, float *bbmax);
+int point_inside_volume_objectinstance(Render *re, ObjectInstanceRen *obi, float *co);
+
void volume_precache(Render *re);
void free_volume_precache(Render *re);
-int point_inside_volume_objectinstance(Render *re, ObjectInstanceRen *obi, float *co);
#define VOL_MS_TIMESTEP 0.1f