MDL Shader Mixer Brick for RGB Color Components [SOLVED]

algovincianalgovincian Posts: 2,592

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

  • algovincianalgovincian Posts: 2,592

    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

  • barbultbarbult Posts: 23,915

    It seems amazing that anyone could figure that out!

  • algovincianalgovincian Posts: 2,592

    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

  • lilweeplilweep Posts: 2,396

    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).

Sign In or Register to comment.