Hi!!
Has someone an example of how I can get variance antialiasing when import a variable with gather?, for example ray:length.
I've tried do that this way:
//compute transmission vector
$Nf = frontface(N,I);
fresnel(normalize(I),$Nf,1/$ior,kr,$kt,R,$Tr);
//temp variables
float raylength;
vector surfacecolor;
//gather loop
gather(P,$Tr,“samples”,$attSamples,
“bias”,$bias,
“maxdist”,$maxDistance,
“angle”,radians(60),
“samplebase”,1,
“variancevar”,“ray:length”,
“ray:length”,raylength)
{
raylength += 0;
}
else
{
raylength = $densityAttenuation;
}
raylength /= max($attSamples,1);
raylength = fit(raylength,0,$densityAttenuation,1,0);
$katt = pow(raylength,$attExponent);
Variance Antialiasing in Gather vex function
2227 0 1- Alejandro Echeverry
- Member
- 691 posts
- Joined: 6月 2006
- Offline
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
-
- Quick Links