diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-12-30 01:19:38 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-12-30 03:04:02 +0400 |
commit | 889d77e6f67e8da70a7cd7dcec6eec12bd996d9f (patch) | |
tree | 16a27ead241306ceafe3f5741b8c9e65d785f68c /intern/cycles/kernel/kernel_random.h | |
parent | af128c4c9655c57b860010746dc7b5707c6520ba (diff) |
Cycles Volume Render: heterogeneous (textured) volumes support.
Volumes can now have textured colors and density. There is a Volume Sampling
panel in the Render properties with these settings:
* Step size: distance between volume shader samples when rendering the volume.
Lower values give more accurate and detailed results but also increased render
time.
* Max steps: maximum number of steps through the volume before giving up, to
protect from extremely long render times with big objects or small step sizes.
This is much more compute intensive than homogeneous volume, so when you are not
using a texture you should enable the Homogeneous Volume option in the material
or world for faster rendering.
One important missing feature is that Generated texture coordinates are not yet
working in volumes, and they are the default coordinates for nearly all texture
nodes. So until that works you need to plug in object texture coordinates or a
world space position.
This is work by "storm", Stuart Broadfoot, Thomas Dinges and myself.
Diffstat (limited to 'intern/cycles/kernel/kernel_random.h')
-rw-r--r-- | intern/cycles/kernel/kernel_random.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/intern/cycles/kernel/kernel_random.h b/intern/cycles/kernel/kernel_random.h index 69e7b439e1c..c435c27b7b4 100644 --- a/intern/cycles/kernel/kernel_random.h +++ b/intern/cycles/kernel/kernel_random.h @@ -18,8 +18,6 @@ CCL_NAMESPACE_BEGIN -typedef uint RNG; - #ifdef __SOBOL__ /* skip initial numbers that are not as well distributed, especially the @@ -192,10 +190,6 @@ ccl_device void path_rng_end(KernelGlobals *kg, ccl_global uint *rng_state, RNG /* Linear Congruential Generator */ -ccl_device float path_rng(KernelGlobals *kg, RNG& rng, int sample, int dimension) -{ -} - ccl_device_inline float path_rng_1D(KernelGlobals *kg, RNG& rng, int sample, int num_samples, int dimension) { /* implicit mod 2^32 */ |