Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Resolved Instancing with GraphicsBuffers: passing transform matrix?

Discussion in 'Visual Effect Graph' started by azmi_unity, Dec 3, 2021.

  1. azmi_unity

    azmi_unity

    Joined:
    Dec 13, 2020
    Posts:
    47
    I'm able to batch VFX graphs together by passing position and rotations via graphics buffers. This works well for World particles but not so well for Local ones.

    Is there a way to pass a custom Matrix4x4 to transform the output particle into world space? While keeping "position" value to local space?
     
  2. azmi_unity

    azmi_unity

    Joined:
    Dec 13, 2020
    Posts:
    47
    Figured it out. Simply transform the position value in the output stage.

    upload_2021-12-3_23-46-12.png

    Unfortunately there is no easy way to transform rotation as vfx graph only exposes euler angles.
     
    Last edited: Dec 3, 2021