[Bf-blender-cvs] CVS commit: blender/source/blender/render/intern/source rendercore.c
ton at blender.org
Fri Jul 7 14:28:23 CEST 2006
ton (Ton Roosendaal) 2006/07/07 14:28:23 CEST
Another fix based on venomgfx fraka .blend:
In december, when testing material layering, I've removed the check that
prevented specular and diffuse to become negative, this because it could
work nice for layering.
However, this breaks quite some cases too. For example negative lamps are
only used to cancel out other lights in same material, and should not give
negative (invisible!) peaks that work on a node system. Same goes for
negative diffuse from AO 'subtract' mode.
In fraka the error happened for AO on a translucent material. The inside
of the mesh got a negative AO, cancelling out the positive AO on the
Anyhoo; this commits ensures that a 'shade_lamp_loop' call will never
return negative values again!
Revision Changes Path
1.170 +8 -1 blender/source/blender/render/intern/source/rendercore.c
More information about the Bf-blender-cvs