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

Detailtexture mask not working in standard shader

Discussion in 'Shaders' started by Elowan, Apr 27, 2015.

  1. Elowan

    Elowan

    Joined:
    Aug 14, 2013
    Posts:
    106
    hi,

    seems, the detailtexture-mask is not working/affecting the detail textures on the standard shader.

    AFAIK, the detailtexture-mask has to be just a black/white texture, which should hide the detail texture in unwanted areas of an object...

    I assigned such a mask, but it is not working... is there more to know about or is it known to be a bug?


    Cheers!
     
  2. Elowan

    Elowan

    Joined:
    Aug 14, 2013
    Posts:
    106
    anybody, pls?
     
  3. Phong

    Phong

    Joined:
    Apr 12, 2010
    Posts:
    2,083
    I agree the documentation is terrible for this feature. Just tested it. Looks like Unity only uses the alpha channel from the detail mask. Put your mask on the alpha channel and it should work. I also save all my images as .tiffs. Other formats don't seem as reliable when using alpha channels.
     
  4. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    606
    I can confirm that in 2021.1 its still the case. You need to have a texture that has the 4 channels active .. and the alpha channel is what controls the mask.

    Thanks for this. I wasn't sure what the heck was going on..