Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question Tilemap Transform Matrix in Shader Graph

Discussion in '2D' started by JamesPaton13, May 19, 2024.

  1. JamesPaton13

    JamesPaton13

    Joined:
    Sep 1, 2020
    Posts:
    2
    Hi,

    In code, I can get the Transform Matrix of a tile easily with Tilemap.GetTransformMatrix to work out if it has been flipped, rotated, etc.
    https://docs.unity3d.com/ScriptReference/Tilemaps.Tilemap.GetTransformMatrix.html

    How can I do this in Shader Graph while rendering the tile? The Transformation Matrix Node always seems to return the identity matrix whether it is rendering a flipped tile or not.
    https://docs.unity3d.com/Packages/com.unity.shadergraph@6.9/manual/Transformation-Matrix-Node.html


    Thank you,
    James