Text archives Help
- From: Peter Shirley <shirley@cs.utah.edu>
- To: manta@sci.utah.edu
- Subject: [MANTA] naive questions
- Date: Sun, 17 Jul 2005 22:00:40 -0600 (MDT)
Hi-- I am FINALLY messing with materials and am trying to tread lightly
since I am still a novice on manta and materials are so central.
I have some style questions:
the version of the code I have for Lambertian (I have an old tree for
now please forgive), there is:
RayPacket shadowRays(data, 0, rays.getDepth(), 0);
int end = context.shadowAlgorithm->computeShadows(context, activeLights,
rays, start, shadowRays);
if(shadowRays.getFlags() & RayPacket::NormalizedDirections){
Seems like shadowAlgorithm BETTER set shadowRays and we should have
some sort of debug-mode assert() instead of "if(shadowRays.getFlags()".
So am I missing something? If not, what is the right way to do debug
asserts in manta?
Thanks,
Pete
- [MANTA] naive questions, Peter Shirley, 07/17/2005
Archive powered by MHonArc 2.6.16.