Realtime Distance Field Textures in Unreal Engine 4

For a long time I wanted to be able to generate Distance Field textures on the fly to create various visual effects. Lately I needed this effect to replicate the Photoshop “glow” filter that you can add on layers. The goal was to apply a “bloom” or “glow” on the UI I’m designing for my current project. This article was written based on Unreal Engine 4.20 Distance Field ? Quick recap for people who don’t know what distance fields areRead more

Stop using the if() node

I admit, that title is a bit misleading. Too many time I see people using the “if()” node in UDK/UE4 for some specific use case while there are other way to avoid the if() node and therefore its cost. (All my tests and comparisons were made with the UE4 4.12.3 and an NVIDIA GPU.) The cost Branching on modern hardware has less impact that a few years ago, but if it can be avoided by some simple math it’s oftenRead more