Caustics are the bright, shifting patterns of light formed when light bends or reflects through a surface, such as water or glass, and lands on another surface. In Unreal Engine, you can create them with a projected texture, a material-based approximation, or ray-traced lighting, depending on your engine version and whether you need real-time performance or physical accuracy. This guide covers a reliable, art-directable method that works in most projects.
Before starting, save a copy of your level and check your Unreal Engine version: lighting and ray-tracing controls vary between UE4 and UE5, and some legacy caustics features have been removed or changed. The projection method below does not depend on a dedicated caustics setting.
What You’ll Need
- An Unreal Engine project and a test level with a floor or wall that will receive the pattern.
- A light source, such as a Directional Light or Spot Light, aimed at the receiver.
- A grayscale caustics texture: a seamless, animated texture sequence is useful, but a single tiling texture is enough to test. Use a texture with dark areas and bright, irregular lines, not a mostly white image.
- A material and a projector actor. You can use a Decal Actor for a simple surface projection, or build a custom projector with a translucent plane or camera-based projection for more control.
- If you want physically simulated caustics: a graphics card and project settings that support hardware ray tracing, plus a compatible Unreal Engine version. This path is more demanding and less consistent across projects.
Step-by-Step
- Set up a clear test scene. Add a matte floor or wall, a light, and the object that should cast or distort the pattern. A simple water surface above a flat pool floor is a good starting point. Make sure the light actually reaches the receiving surface; an intervening opaque object will block it.
- Prepare the texture. Import a grayscale caustics image or flipbook. In its texture settings, enable tiling if the pattern should repeat, and set compression and filtering appropriate to your project. Use a seamless image to avoid visible edges. If you have a flipbook, note its frame layout and playback rate; a static image is sufficient for the first pass.
- Create a projection material. Make a new material and set its blend mode to Translucent for a light-like overlay, or use an emissive decal material if your engine version and decal setup support the required projection. Sample the caustics texture and use its grayscale value to control the pattern. Connect the texture to Emissive Color so it stays visible in dim areas. Multiply it by a color and a scalar brightness parameter to make both easy to tune.
- Control the visible pattern and opacity. Use the texture value to drive Opacity, then multiply by a scalar parameter for overall opacity. Keep the background of the texture black or near black so it contributes little or no light. For a convincing overlay, tint the emissive output toward the light or water color, and avoid making the brightest lines pure white unless the scene calls for a very strong effect. Translucent materials can sort incorrectly against other transparent objects, so test from the intended camera angle.
- Make the pattern move. Add a Panner node to the texture coordinates, or animate two texture samples moving in different directions and blend them. Slow, slightly varied motion usually looks more natural than a fast uniform scroll. For a flipbook, use a Flipbook node and set its dimensions to match the texture sheet. Keep motion subtle; the projected pattern should appear to ripple, not slide like a decal.
- Place the projection over the receiver. Add a Decal Actor and assign the material if using decals. Rotate and scale it so its projection volume covers only the floor or wall you want to affect. Adjust its depth and fade distances to prevent it appearing on unrelated geometry. If using a translucent plane or custom projector instead, orient it toward the receiving surface and use projected coordinates so the pattern does not stretch unexpectedly.
- Align it with the light. Position and rotate the projection so its pattern falls beneath the light and any refracting object, such as a water plane. A decal is an art-directed overlay; it does not automatically trace light through water or respond correctly to moving objects. Treat its placement as a visual match to the lighting, rather than assuming it is physically calculated.
- Expose useful controls. Create a Material Instance and adjust brightness, opacity, color, scale, and panning speed while viewing the level. Smaller texture tiling makes finer patterns; larger tiling creates broader pools of light. Tune the effect at the final camera distance, because a pattern that looks detailed close up may shimmer or disappear in the game view.
- Check performance and build quality. Preview in the intended rendering mode and on the target hardware. If the effect is used in many locations, reuse materials and keep the number of overlapping translucent layers low. For a packaged project, test a build rather than relying only on the editor viewport, since scalability settings and rendering features can differ.
- Consider ray-traced caustics only if supported. In versions and rendering paths that expose a caustics option, enable the relevant ray-tracing features in project settings, restart the editor if prompted, and check the light and material settings for caustics support. Follow the controls shown by your exact engine version; there is no single switch that enables accurate caustics in every UE4 or UE5 project. Compare the result against the projected-material method, and use the latter if the feature is unavailable, too slow, or unreliable on target devices.
Common Mistakes
- Expecting a decal to simulate refraction. A projected texture is a visual overlay, not a physical light transport solution. It will not automatically react to water depth, surface normals, or changing geometry.
- Using a bright white texture background. This can create a glowing rectangle or wash out the receiver. Use black or dark negative space and keep opacity controlled.
- Applying the material to the wrong surface. Decals may not affect every material or mesh as expected. Check decal response settings on the receiving material and confirm the projection direction and bounds.
- Overlapping too many translucent effects. Layering can cause sorting artifacts, excess overdraw, and poor performance. Limit the projected area and avoid unnecessary copies.
- Following instructions for a different engine version. Ray-tracing and legacy caustics options change between releases. Verify that a setting exists in your version before building the effect around it.
Tips
- Use a material instance so artists can tune the effect without opening the material graph.
- Blend two low-contrast patterns at different scales and speeds to reduce the obvious scrolling-texture look.
- Use a flipbook or animated texture for changing shapes, and keep its loop smooth to prevent a visible reset.
- Match the pattern’s color and intensity to the scene’s actual light. Caustics should generally be brighter than their surroundings, but not brighter than the source would plausibly allow.
- For a pool, confine the effect to the submerged floor and soften its edges. For a glass-focused scene, project onto the surface where the pattern should land rather than making the glass itself glow.
Troubleshooting
- The effect is invisible: Confirm the material is assigned, the opacity is above zero, and the texture has bright values. Check the decal’s receiver response, projection direction, bounds, and the material’s blend mode. Temporarily increase emissive brightness to diagnose visibility, then reduce it.
- The pattern appears on the wrong objects: Shrink the decal volume, adjust its orientation and fade distances, or use a custom projector with a restricted receiver mask. Check whether nearby surfaces intersect the projection volume.
- The pattern looks flat or detached from the light: Reposition and rotate it to match the light path. Remember that a decal will not automatically track a moving light or water surface; animate or attach the projector if the scene requires it.
- The texture stretches or shows seams: Use seamless artwork, correct the texture tiling, and adjust the projected coordinates or projector aspect ratio. Avoid scaling a decal far beyond the proportions of its texture.
- The material flickers or sorts incorrectly: Reduce overlapping translucent layers, move the projector slightly off coincident surfaces, and test with the intended camera. If decal fading or surface artifacts persist, try a different projection method.
- Ray-traced caustics do not appear: Verify hardware and project support, enable the required ray-tracing path, check the light and receiving materials, and restart if settings request it. If the controls are missing in your engine version, use the projected-texture approach.
Frequently Asked Questions
Does Unreal Engine support caustics by default?
Not as one universal feature. Support depends on the engine version, rendering path, hardware, and project configuration. A projected material is a dependable art-directed alternative.
Can I make water caustics without ray tracing?
Yes. Animate a caustics texture in a translucent material or decal and project it onto the pool floor. This creates the appearance of caustics without physically tracing light.
Should I use a decal or a translucent plane?
Use a decal for a quick projection onto compatible opaque receivers. Use a plane or custom projector when you need more control over coordinates, animation, or which surfaces receive the pattern.
How do I make caustics move?
Pan the texture coordinates, blend slowly moving texture layers, or animate a flipbook. Keep the speed low and test for looping, shimmer, and visual repetition.
Why do caustics look like a glowing sticker?
The texture may have too much opacity or brightness, a visible rectangular boundary, or no variation in motion. Darken its background, soften the projection edges, reduce intensity, and use subtle animation.
Will this method work on mobile?
A simple projected material may work, but translucent overdraw and rendering features vary by device and project settings. Test on the actual target hardware and use a smaller, simpler effect if performance is limited.
Related
- Middle Eastern Rice Dish: Easy Spiced Pilaf Recipe
- Tostadas in Microwave: Crispy in 5 Minutes
- Yam and Eggs Nigerian: Easy Breakfast Recipe
More recipes to cook
Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes
Spotted an error? Tell us and we will correct it (corrections policy).