Thursday, December 17, 2009

Using ptc from colorbleeding

string ptc_file = v1; normal Nf = faceforward(normalize(N),I); color IndDif = indirectdiffuse(P,Nf, 0,"filename",ptc_file,"pointbased",1, "maxdist", v2, "falloffmode", 1, "falloff", 1); result = IndDif*scale; use in an slbox, v1,v2,v3 for easier control.

0 comments:

Post a Comment