On 19/08/2013 at 09:15, xxxxxxxx wrote:
Cinema 4D Version: 12+
Platform: Windows ;
Language(s) : C++ ;
I use TraceColor within a shader to trace reflections. This works fine, as long as there are shaders involved, but it does not work for example to get the colors from a reflecting material (reflection channel used).
So, if I can't determine the reflections with TraceColor, is there another way to do this? Is there another function for reflections? Or do I need to set certain flags to get the correct behavior?
If there is no such function, is there a way to figure out the material settings of the point hit by TraceColor, so I can send out the next ray "manually"? Somehow I can't imagine I need to do that manually, as Cinema for sure has a way to trace reflections...