
Download – https://www.patreon.com/posts/69496398
Patreon- https://www.patreon.com/Ashif
NFT – https://opensea.io/CGHOW
Twitter – https://twitter.com/cghow_
👉👉 If you Liked it – http://bit.ly/2UZmiZ4
Channel Ashif – http://bit.ly/3aYaniw
Support me on – paypal.me/9953280644
Rays Material in UE5 Tutorial | Download Files
#cghow #UE5 #UE4Niagara #gamefx #ue5niagara #ue4vfx #niagara #unrealengineniagara #realtimevfx
â—ŹVisit – https://cghow.com/
Unreal Engine Marketplace – https://bit.ly/3aojvAa
Artstation Store – https://www.artstation.com/ashif/store
Gumroad – https://cghow.gumroad.com/
Title: Creating Dynamic Ray Material in Unreal Engine with Texture Channel Control | Tutorial
Introduction: Hi guys, I’m Ashif Ali and you’re watching CGHOW. In this video, I’ll show you how to create a dynamic ray material in Unreal Engine that allows you to change textures and channels, control the ray direction, and even randomize their height. This material works with any texture, giving you flexibility to use it for various effects.
If you haven’t subscribed to my YouTube channel yet, please subscribe, like, share, and comment. Let’s dive into the tutorial!
Tutorial Steps:
- Create Material & Set Texture Channels:
- Start by creating a basic planar, unlit material.
- Use a shape with multiple textures on different channels (e.g., red, green, blue).
- You can choose any texture, and this technique works with multiple texture channels.
- Add UV Distortion:
- Introduce texture UV distortion by manipulating UVs.
- Use noise texture to create shifting effects based on black/white values.
- Adjust distortion scale using a parameter (0 means no offset, 1 for full offset).
- Radial Distortion Setup:
- For radial distortion, subtract
0.5from texture coordinates so that the center is0. - Use a mask to extract positive/negative values for the radial distortion.
- For radial distortion, subtract
- Adjust Tiling:
- Add texture coordinates and multiply them to adjust tiling.
- You can modify tiling along one axis using append nodes, allowing control over the direction of the rays.
- Randomize Ray Length:
- Add randomness to the ray lengths using another noise texture.
- Multiply it with the texture coordinates to get randomized results.
- Introduce a “seed” for texture variation, ensuring different patterns each time.
- Create Material Function for Rays:
- Create a reusable material function for ray generation to streamline the process.
- Pass in parameters like distortion, random length, and tiling for easy tweaking.
- Multiple Ray Layers:
- Duplicate the ray layer and adjust settings for variation.
- Combine multiple ray layers with different tiling, length, and distortion for more complex results.
- Add Animation & Color Variations:
- Introduce time-based animations for ray movement.
- Add color variations using the radial distortion and randomize the color properties for dynamic effects.
- Use Texture Channels Dynamically:
- Set up the material to automatically switch between different texture channels (red, green, blue) based on input values.
- Create a parameter that adjusts the channel dynamically, allowing you to choose any texture for the rays.
Key Points:
- Dynamic Texture Control: Switch between texture channels with a single parameter.
- UV Distortion: Use noise and radial distortion for dynamic texture shifts.
- Randomized Ray Length: Add randomness to the ray lengths using noise textures.
- Multiple Ray Layers: Combine multiple layers of rays with different settings for complex effects.
- Animation: Implement time-based animation for ray movements.
- Color Customization: Customize ray color based on radial distortion and texture channels.
Tags: Unreal Engine, Ray Material, Texture Channels, VFX Tutorial, Unreal Engine Materials, Radial Distortion, Dynamic Materials, Gaming VFX, Material Functions, Texture UVs, Randomized Ray Lengths
Additional Notes:
- Experiment with different shapes and texture patterns to create unique effects.
- Make sure to adjust the “seed” and “random length” values for every new effect to get fresh results.
- You can apply this technique to many other effects like particle systems or backgrounds.
Conclusion: I hope you found this tutorial helpful! Keep experimenting with textures and materials in Unreal Engine to create stunning visuals. Don’t forget to like, share, and subscribe for more tutorials like this. Thanks for watching, and keep learning!


Leave a Reply