Blender Git Commit Log

Git Commits -> Revision 775d356

Revision 775d356 by Ton Roosendaal (master)
July 7, 2006, 12:28 (GMT)
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
outside.

Anyhoo; this commits ensures that a 'shade_lamp_loop' call will never
return negative values again!

Commit Details:

Full Hash: 775d3561b1dfc5f133a07e8fbd8dc9079161a247
SVN Revision: 8110
Parent Commit: f51c8f2
Lines Changed: +7, -0

1 Modified Path:

/source/blender/render/intern/source/rendercore.c (+7, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021