Search Unity

Using a render texture of camera output to set the alpha of particles in visual effect graph

Discussion in 'Visual Effect Graph' started by laurienash, Jul 30, 2021.

  1. laurienash

    laurienash

    Joined:
    Mar 15, 2013
    Posts:
    61
    Hiya,

    I'm making a project in HDRP - which is a full screen interactive world map.

    I've made city lights using the visual effect graph & a point cache / set position from map node.

    Capture_VFX.PNG

    Ideally, I would like the lights to fade out where the user is touching/clicking the screen.

    I have a second camera that's outputting a render texture of the particle effects the user trails when touching/clicking the screen.
    Capture_RT.PNG

    Is there a way of using this render texture to kill particles or fade the alpha in the visual effect graph?

    Thanks!