|
|
>> I want to render objects having a self-made 3D pigment that is
>> defined via 3 user-defined functions (one for red, one for green and
>> one for blue), or via one function that returns an RGB color vector
>> directly
>>
>> (Or even an 4- or 5-dimensional rgbf, rgbt or rgbft vector)
>>
>> Is that possible, somehow?
>>
>>
>> As far as I understand a user-defined pigment functions just returns
>> a single float that is used as an index in a color_map.
>>
>
> If I understood it correctly, I think the "average" pattern should help
> there: create 3 separate pigments for each function, then use a
> pigment_map to average them together.
>
If you want to add a filter or transmit component, use your function
this way, after the pigment itself:
filter My_Filter_Function(x,y,z) transmit My_Transmit_Function(x,y,z)
Post a reply to this message
|
|