Fix T37976: blender internal transparent shadows from volumes not working correct.
This commit is contained in:
parent
fd0b104f70
commit
82a7a3d3ed
Notes:
blender-bot
2023-02-14 11:25:15 +01:00
Referenced by issue #37976, In blender-internal strange shadow receive from transparency objects i.e. volume and clouds
|
@ -788,7 +788,7 @@ void shade_volume_shadow(struct ShadeInput *shi, struct ShadeResult *shr, struct
|
|||
/* due to idiosyncracy in ray_trace_shadow_tra() */
|
||||
if (is.hit.ob == shi->obi) {
|
||||
copy_v3_v3(shi->co, hitco);
|
||||
last_is->dist -= is.dist;
|
||||
last_is->dist += is.dist;
|
||||
shi->vlr = (VlakRen *)is.hit.face;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue