Search Unity

Question Itsp there somewhere, but is getting a normal map from height API available

Discussion in 'Editor & General Support' started by Ne0mega, Jun 6, 2023.

  1. Ne0mega

    Ne0mega

    Joined:
    Feb 18, 2018
    Posts:
    755
    Yiu can do it when importing via editor. You can make a shader do it.

    But is there a way to call the API to create a normal map from height map... ...and mark that texture marked as normal by unity?

    Also, i may misunderstand shaders, but would i be right in assuming doing it in shader is slow, because it would be doing it every frame, (compared to generating the normal map from height map first, then assigning to an exposed property)