Sunday, July 22, 2012

UDK Fake Thickness Material

Today I made a material that fakes thickness on surfaces that use transparency masking. 

The concept is basically to offset the texture with a Bump Offset node (also known as Parallax), then darkening it with a multiply node, and then adding it underneath the original texture with a Lerp node. It doesn't handle corners that well, so I'm wondering if multiple stacks of Lerp might help with the illusion but I'm worried about the drawcalls. Also, I'm not sure if this is more efficient than just stacking two planes, I'll have to do some testing.



Here is the Material Graph:


No comments: