On 17/07/2013 at 09:04, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12-14
Platform: Windows ;
Language(s) : C++ ;
---------
Hy there,
I use TraceColor to trace reflections within a Shader. I figured out, that TraceColor will return wrong values. It seems that lights always add illumination to luminant materials, no matter if the light is hidden or not.
A simple test is the following:
- You need a shader which uses TraceColor to trace reflections
- Put it onto a sphere
- Create a Sky with a luminant material
- Put a Light into a box (disable automatic lightning), put it somewhere besides the sphere
- Render when the Light is enabled and once if it is disabled
When the light is enabled, it will illuminate the Sky in the traced reflection. So the sky appears brighter than without the light in the box.
How can I fix this behavior?
In case this behavior is correct, how would I use this method properly?
Thank you,
maxx
Edit: It has nothing to do with Area-Lights, as I thought (updated the question now), just tested it again, it is wrong for all types.