My guess is that shading twice probably an oversight on my part. The other code in that shootOneRay conditional computes the hit positions and normals--which might not be computed by arbitrary shaders but still would be useful for debugging or GUI invocation.
Abe
Thiago Ize wrote:
I noticed that shootOneRay in RTRT.cc is saying that shade is being called twice. Looking at the code, I see in RTRT.cc that shootOneRay does:
result_rays.getHitMaterial(0)->shade( render_context, result_rays );
which is one of the shade calls. But a little above that traceEyeRays is called, which calls traceRays, which also calls hit_matl->shade(context, subPacket) -- the other shade call.
Since I don't consider myself an expert with the manta infrastructure, is that a bug? If not, why is that happening?
Thanks,
Thiago
Archive powered by MHonArc 2.6.16.