How do I access a parameter (e.g., 'from') in a light source shader from my
surface shader? I'm manually ray-tracing some of my shadows, sort of, and
came up. Right now I'm just dropping it in as a parameter to the surface
shader, but this is cumbersome and... well, dumb. Does the answer involve an
My project is at
A note: The code for drawing the star on the ball is my own guess as to how
Pixar did it. Looking at the way they did, I see that my way is *completely*
different. But it still works remarkably closely...
Thanks for answering.