shadow(name) not varying
Status: Beta
Brought to you by:
render_man
It appears that the shadow name parameter of the shadow() function is uniform. I have a situation where I'm loading multiple shadow maps in a illuminance loop and require "name" to be varying...
illuminance(P)
{
lightsource("__nondiffuse", nondiff);
if (nondiff == 0)
{
lightsource("__shadowname", shadowname);
if (shadowname != "" && shadowname != "raytrace")
{
...
InDepth = comp(ctransform("hsv", 1-shadow(shadowname, P, "samples", Samples, "bias", lightbias, "blur", LgBlur)), 2);
This seems to work fine in 3Delight, Air, PrMan and Aqsis.
Attached is 3Delight/Pixie comparison renders showing Pixie only using the first light in a fake SSS shader.
Oh, it's in Pixie's source of course!
I will submit patch (just to delete some lines), it works great.
Cheers.
This is the same problem as the previous one.
Okan