Ray light particles

Hi all

How to make praticles visible only in ray light volume? Good reference is “Inside” game:


You can just do a cone function and apply that as the alpha inside of the particles. I made an example showing how to do that here:

https://forums.unrealengine.com/showthread.php?122791-Where-to-start-to-achieve-this-effect&p=594057&viewfull=1#post594057

You just need to update the Position and Orientation, using either Material Instance Dynamics or Material Parameter Collections.

You could make the core brighter by using a Power with variable exponent. If you want to use the inverse squared law you will need to apply a further term of Distance^2 to darken with distance, or just use a falloff function that looks nice.

This same kind of question seems to be very popular lately!

Many thanks!