POV-Ray : Newsgroups : povray.general : trace question : Re: trace question Server Time
4 May 2024 12:32:13 EDT (-0400)
  Re: trace question  
From: clipka
Date: 10 Sep 2017 09:27:07
Message: <59b53dab$1@news.povray.org>
Am 10.09.2017 um 15:13 schrieb Stephen:
> If I trace an object. How can I get the colour of the intersection of
> the ray and object. As far as I can see trace() only returns the normal.

You'll need to know the pigment of the object, and invoke `eval_pigment`
on the intersection point you get...

... and hope that the pigment isn't UV-mapped, nor uses a special
pattern like slope or aoi.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.