Fixing Refraction Clipping in Unreal 5 @tharlevfx
Fixing Refraction Clipping in Unreal 5  @tharlevfx
Uploaded September 2023 | Updated September 2026, 3 weeks ago
This week we have a quick look at why small values of Refraction clip and how we can make a simple, non-destructive, edit to the shader file to fix this.

//clip if the distortion distance (squared) is too small to be noticed
//this will result in a less expensive apply pass since the clipped pixels won't set stencil to pass
if (TryToClip)
{
#if OVERRIDE_DISTORTION_CLIP
clip(dot(BufferUVDistortion, BufferUVDistortion) - .00000001);
#else
clip(dot(BufferUVDistortion, BufferUVDistortion) - .001);
#endif
}

If you have any questions about Game Art VFX or the Unreal Engine then email me: tharlevfx@gmail.com
Check out my longer tutorials available on Gumroad: tharlevfx.gumroad.com
Or you can find more of my work on my website: tharlevfx.com
or check out my work on the Unreal Marketplace:
unrealengine.com/marketplace/profile/tharlevfx
or follow me on Twitter: @tharlevfx
If you'd like to support the channel then follow me on Patreon: patreon.com/tharlevfx
Fixing Refraction Clipping in Unreal 5Tracking Animated VerticesPlayer Based Materials MasksMaterial Editor Reference 42 - Input Data - TimeMarketplace Architectural Section Tool TutorialForest Stream Waterfall - Foam and Finishing TouchesMaterial Editor Reference 43 - Input Data - Camera Position, Camera VectorMaterial Editor Reference 33 - Math - FresnelParticle Cave Remastered - Dev Diary 2Material Editor Reference 53 - UVs - TilingUsing Masks and MathsNiagara 102 - Dust Particles
tharlevfx |

Fixing Refraction Clipping in Unreal 5

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER