|
|
In article <38948214@news.povray.org>, Nieminen Juha
<war### [at] punarastascstutfi> wrote:
> Chris Huff <chr### [at] yahoocom> wrote:
> : How about adding a "perturb_normal()" function instead?
>
> It may be one solution, but difficult to use if the object in question
> has complex transformations (you would have to apply the same
> transformations
> to the texture before calling perturb_normal()).
How about also adding a way to access the texture of the object? That
way you could trace against the object, then use the object's texture
normal(which was transformed along with the object) to perturb the real
normal. The normal could be accessed by either a dot
operator(preferable, something like this: Obj.texture.normal), or by a
function(less flexible syntax, more keywords, etc. Something like
get_tex_normal(Obj)).
--
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
|