|
|
Am 27.10.2018 um 13:16 schrieb Paul Bourke:
> I am aware of the trace macro that returns the intersection point and normal at
> that point on a object given a ray (point and direction). But is there a way to
> get the colour?
If by "colour" you mean apparent colour (as it would appear in the
output image), the answer is a clear "nay".
If by "colour" you mean pigment, the answer is "well, sort of"; you can
use the `eval_pigment` function Bald Eagle mentioned already, but you'll
have to separately keep track of transformations and stuff, POV-Ray
doesn't do that for you. Also, `eval_pigment` doesn't work with pigments
that depend on properties of the object surface, the ray, or interaction
betweent the two, such as pigments using the `slope` or `aoi` patterns.
Post a reply to this message
|
|