Search Unity

_SpecGlossMap with Standard (Roughness setup)

Discussion in 'Shaders' started by stereographik, Mar 25, 2018.

  1. stereographik

    stereographik

    Joined:
    Sep 9, 2015
    Posts:
    3
    Hello,

    I have a custom editor window that creates a material and then binds textures.

    Code (CSharp):
    1. Material mat = new Material(Shader.Find("Standard (Roughness setup)"));
    2. mat.SetTexture("_SpecGlossMap", roughness_tex);
    Everything is ok for albedo, normal, occlusion, detail normals EXCEPT for _SpecGlossMap ! the texture does not appear and is not applied at shading, and no error poping :/

    I'm using Unity 2017.3.0f3, would really need some help on that !
     
  2. AftyrbyrnX

    AftyrbyrnX

    Joined:
    Jul 19, 2022
    Posts:
    1
    "Standard (Roughness setup)" does not have a specular gloss map.

    you need to use "Standard (Specular setup)"