Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feature Request Why is there no material property for matrices in ShaderLab?

Discussion in 'Shaders' started by julienkay, Mar 9, 2023.

  1. julienkay

    julienkay

    Joined:
    Nov 12, 2013
    Posts:
    167
    I would love to be able to set a matrix using the material Inspector and have Unity automatically save the matrix as part of the material asset, which doesn't seem to be possible right now.

    If there is any good reason why this isn't built-in, or if I'm missing something basic, please let me know. Otherwise consider this a feature request, because I think this should definitely be a standard feature.

    P.S.: I'm aware of the options of passing in 4 vectors and assembling a matrix in the shader or writing code that calls Material.SetMatrix each frame, even during edit time. But I consider both of these clunky workarounds.
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,631