Blender Git Loki
Git Commits -> Revision 2b39214
Revision 2b39214 by Brecht Van Lommel (master) December 28, 2013, 19:12 (GMT) |
Cycles Volume Render: add support for overlapping volume objects. This works pretty much as you would expect, overlapping volume objects gives a more dense volume. What did change is that world volume shaders are now active everywhere, they are no longer excluded inside objects. This may not be desirable and we need to think of better control over this. In some cases you clearly want it to happen, for example if you are rendering a fire in a foggy environment. In other cases like the inside of a house you may not want any fog, but it doesn't seem possible in general for the renderer to automatically determine what is inside or outside of the house. This is implemented using a simple fixed size array of shader/object ID pairs, limited to max 15 overlapping objects. The closures from all shaders are put into a single closure array, exactly the same as if an add shader was used to combine them. |
Commit Details:
Full Hash: 2b39214c4d8811b06545b83c4e42a7578266e2b1
Parent Commit: e369a5c
Lines Changed: +227, -118
9 Modified Paths:
/intern/cycles/kernel/kernel_path.h (+17, -17) (Diff)
/intern/cycles/kernel/kernel_path_state.h (+1, -16) (Diff)
/intern/cycles/kernel/kernel_shader.h (+107, -44) (Diff)
/intern/cycles/kernel/kernel_shadow.h (+8, -12) (Diff)
/intern/cycles/kernel/kernel_types.h (+30, -1) (Diff)
/intern/cycles/kernel/kernel_volume.h (+60, -11) (Diff)
/intern/cycles/kernel/osl/osl_shader.cpp (+2, -8) (Diff)
/intern/cycles/kernel/osl/osl_shader.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm.h (+0, -7) (Diff)
/intern/cycles/kernel/kernel_path_state.h (+1, -16) (Diff)
/intern/cycles/kernel/kernel_shader.h (+107, -44) (Diff)
/intern/cycles/kernel/kernel_shadow.h (+8, -12) (Diff)
/intern/cycles/kernel/kernel_types.h (+30, -1) (Diff)
/intern/cycles/kernel/kernel_volume.h (+60, -11) (Diff)
/intern/cycles/kernel/osl/osl_shader.cpp (+2, -8) (Diff)
/intern/cycles/kernel/osl/osl_shader.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm.h (+0, -7) (Diff)