Search Unity

How to access VFX Graph attributes passed as interpolants via a ShaderGraphVfxAsset ?

Discussion in 'Visual Effect Graph' started by XRA, Aug 21, 2020.

  1. XRA

    XRA

    Joined:
    Aug 26, 2010
    Posts:
    265
    *EDIT* I see, exposed inputs show up in VFX Graph. Feel free to delete this.

    Let's say you've got a VFX Graph modifying color and alpha per particle, usually those are read from the attribute ByteAddressBuffer.

    In the case of using a ShaderGraphVfxAsset how does a VFX Shader Graph access those attributes? The first obvious place to check was the Geometry Vertex Color node, but the interpolants are coming through as 0.
     
    Last edited: Aug 21, 2020
    TobiasLuckeyPDX likes this.