How can I connect a thin film shader to an ramp float with the colors?

How can I connect a thin film shader to an ramp float with the colors?

ahmedkZZL7U
Explorer Explorer
976 Views
3 Replies
Message 1 of 4

How can I connect a thin film shader to an ramp float with the colors?

ahmedkZZL7U
Explorer
Explorer

I only get black and white values, I'm trying to get rgb outputs from the float.

0 Likes
977 Views
3 Replies
Replies (3)
Message 2 of 4

cdordelly09
Enthusiast
Enthusiast

@Ahmed Khaled What do you want to do with the thin film colors? The ramp float it's only for remap float information (0-1 values) not rgb values.


Maybe other node works for you. And also, remember that the thin film shader will be removed at some point. You can recreate it with a ramp_rgb shader.

0 Likes
Message 3 of 4

zenop
Advocate
Advocate

If you want to use a custom ramp you'll have to use something other than the thin film shader. The thin film shader is designed to produce colour values based on the thickness of the film and accepts values in nanometres.

You can kind of fake it by combining a noise and the facingratio, which you can then pipe into your custom ramp coordinates.

0 Likes
Message 4 of 4

jmcdermid1
Explorer
Explorer

Was doing a similar thing the other day.. use facingratio to drive transmission colour and cutout opacity, each via their own rgb_float.. (if this is what you mean?)

106-fr-driving-transmission.jpg

0 Likes