Search Unity

Runtime importing a normalmap on mobile

Discussion in 'Editor & General Support' started by Kubic75, Dec 18, 2017.

  1. Kubic75

    Kubic75

    Joined:
    Jan 2, 2017
    Posts:
    83
    I want to import a normalmap at runtime on a mobile device.

    The texture is present as a black´n white image or even as colored normalmap.

    After importing it with:

    diffuseTexture.LoadImage (File.ReadAllBytes (path));

    I have to define the loaded texture as a normalmap.

    But how?