[Bf-blender-cvs] [82a7a3d] master: Fix T37976: blender internal transparent shadows from volumes not working correct.

Brecht Van Lommel noreply at git.blender.org
Mon Jan 20 21:57:06 CET 2014


Commit: 82a7a3d3ed04b6f93c9e5a32349116122863fec0
Author: Brecht Van Lommel
Date:   Mon Jan 20 21:55:28 2014 +0100
https://developer.blender.org/rB82a7a3d3ed04b6f93c9e5a32349116122863fec0

Fix T37976: blender internal transparent shadows from volumes not working correct.

===================================================================

M	source/blender/render/intern/source/volumetric.c

===================================================================

diff --git a/source/blender/render/intern/source/volumetric.c b/source/blender/render/intern/source/volumetric.c
index e1f616e..05d0eff 100644
--- a/source/blender/render/intern/source/volumetric.c
+++ b/source/blender/render/intern/source/volumetric.c
@@ -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;
 	}




More information about the Bf-blender-cvs mailing list