Revision: 17162 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17162 Author: broken Date: 2008-10-22 04:59:33 +0200 (Wed, 22 Oct 2008)
Log Message: ----------- Tweaked rendering inside a volume to always return alpha 1.0. This fixes an issue which darkened the render from inside a volume with sky or premul on. Still need to find a good way to get an alpha value back into the shader (for compositing etc) without getting the render distorted by premul. Modified Paths: -------------- branches/sim_physics/source/blender/render/intern/source/volumetric.c Modified: branches/sim_physics/source/blender/render/intern/source/volumetric.c =================================================================== --- branches/sim_physics/source/blender/render/intern/source/volumetric.c 2008-10-22 01:31:46 UTC (rev 17161) +++ branches/sim_physics/source/blender/render/intern/source/volumetric.c 2008-10-22 02:59:33 UTC (rev 17162) @@ -664,7 +664,8 @@ shr->combined[1] = col[1]; shr->combined[2] = col[2]; - if (col[3] > 1.0f) col[3] = 1.0f; + //if (col[3] > 1.0f) + col[3] = 1.0f; shr->combined[3] = col[3]; shr->alpha = col[3]; @@ -858,7 +859,7 @@ float co[3], voxel[3], scatter_col[3]; ShadeInput shi; - float view[3] = {0.0,0.0,1.0}; + float view[3] = {0.0,0.0,-1.0}; float density; float stepsize; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs