|
|
I created the following pigment to be used with ChromaDepth glasses:
pigment
{
gradient vnormalize(Camera_Location - Camera_LookAt) * -1
color_map
{
[0/4 srgb <1,0,0,>]
[1/4 srgb <1,1,0,>]
[2/4 srgb <0,1,0,>]
[3/4 srgb <0,1,1,>]
[4/4 srgb <0,0,1,>]
}
scale vlength(Camera_Location - Camera_LookAt) * 100
translate Camera_Location
}
However, the relationship between distance and color is linear in my
example. How do I change this so that the hue is based on atan(distance
from camera)? Thanks!
Mike
Post a reply to this message
|
|