I am trying different things in sl. And when I tried to compile shader with function recursion sdrc goes segfault.
Does sl support function recursion?
The function was:
output color outcol;
output float outval;
float val = 0;
color col = 0;
float curval = get_density(pp,sphere_center)/samples;
if (((outval + prevval) < 1) && (n<samples))
outval = curval + val;
outcol = 1;
Unfortunately, the shading language doesn't support recursion. All functions are in fact inline expanded. I think PrMan shares the same limitation.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.