Cycles: Fix regression caused by recent camera-in-volume commit
Stupid me forgot that we don't have stop-element in the stack yet.
This commit is contained in:
@@ -1011,7 +1011,7 @@ ccl_device void kernel_volume_stack_init(KernelGlobals *kg,
|
|||||||
shader_setup_from_ray(kg, &sd, isect, &volume_ray);
|
shader_setup_from_ray(kg, &sd, isect, &volume_ray);
|
||||||
if(sd.flag & SD_BACKFACING) {
|
if(sd.flag & SD_BACKFACING) {
|
||||||
bool need_add = true;
|
bool need_add = true;
|
||||||
for(int i = 0; stack[i].shader != SHADER_NONE; ++i) {
|
for(int i = 0; i < stack_index; ++i) {
|
||||||
/* If ray exited the volume and never entered to that volume
|
/* If ray exited the volume and never entered to that volume
|
||||||
* it means that camera is inside such a volume.
|
* it means that camera is inside such a volume.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user