THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/05/2005 at 12:38, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.5
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
How do I use AllocRayLight?
Here a little code sample from the Output function of my shader.
BaseObject* op = cd->vd->op->link;
if(!op) return Vector(1.0, 0.0, 0.0);
RayLight *light = AllocRayLight(op);
if(!light) return Vector(0.0, 1.0, 0.0);
What Object must I pass to AllocRaylight? Where is the right point to run this function, the manual is a bit vague about it. I like to add some own lights in my shader and to calculate the illumination thru my own IlliminationModel.
thanks in advance,
Matthias