Converting layered shader to glsl

Hey guys, I’m working on converting a Maya shader made by one of our artists into a shader for the engine, and I’m wondering if anyone knows the formulas for the blend modes in Maya’s layered texture shader. The documentation on layered textures does describe the blend modes, but not mathematically. Specifically, I’m looking for the illuminate formula.

Thanks!

This may help. Based on the maya docs, the illuminate formula sounds similar to Luminosity mode.

http://en.wikipedia.org/wiki/Blend_modes#Hue.2C_saturation_and_luminosity

Thanks! That is very helpful!

Some related searches also uncovered this, if anyone’s interested:

It emulates photoshop blends in glsl. I haven’t had as much glsl experience (yet) as some others, but it looks like a lot of instructions for a real time shader. It is very interesting nonetheless.