forked from bartvdbraak/blender
Cycles: Cleanup of the SSS volume stack update code
Was a leftover after the changed scene_intersect() which used to be ifdefed depending on the __HAIR__ in the original patch.
This commit is contained in:
parent
e1afaa02bf
commit
53b05e4f06
@ -371,9 +371,9 @@ ccl_device void kernel_path_subsurface_update_volume_stack(KernelGlobals *kg,
|
||||
Intersection isect;
|
||||
const float3 Pend = volume_ray.P + volume_ray.D*volume_ray.t;
|
||||
|
||||
while(
|
||||
scene_intersect(kg, &volume_ray, PATH_RAY_ALL_VISIBILITY,
|
||||
&isect, NULL, 0.0f, 0.0f)) {
|
||||
while(scene_intersect(kg, &volume_ray, PATH_RAY_ALL_VISIBILITY
|
||||
&isect, NULL, 0.0f, 0.0f))
|
||||
{
|
||||
ShaderData sd;
|
||||
shader_setup_from_ray(kg, &sd, &isect, &volume_ray, 0, 0);
|
||||
kernel_volume_stack_enter_exit(kg, &sd, stack);
|
||||
|
Loading…
Reference in New Issue
Block a user