MDL Shader Mixer Brick for RGB Color Components [SOLVED]
algovincian
Posts: 2,633
I can't seem to find an MDL brick that breaks down a color into its individual RGB components so they can be operated on independently. Does one exist and I'm just blind?
Thanks in advance for any info anyone can provide!
- Greg
Post edited by algovincian on
Comments
In case anybody else is ever interested - I think I found the brick to break down a color into its separate RGB components:
Bricks->Functions->MDL->Built Ins->Types->Accessors->Float3->Float3 Get X
Bricks->Functions->MDL->Built Ins->Types->Accessors->Float3->Float3 Get Y
Bricks->Functions->MDL->Built Ins->Types->Accessors->Float3->Float3 Get Z
And the brick to re-combine them into a color:
Bricks->Functions->MDL->Built Ins->Types->Color->Color 3 Inputs
- Greg
It seems amazing that anyone could figure that out!
Just took some fishing. I looked for like 10 minutes before posting and came up empty. After posting, I kept looking and immediately found it - doh!
Hopefully, it will save somebody else some time ;)
- Greg
Since you understand all this nonsense, can you modify the Uber Shader so it can take an uploaded RMA texture and unpack into the relevant channels (Roughness/Metallicity).