How do I use Detail Textures?
Manual     Reference     Scripting   
Unity Manual > FAQ > Graphics Questions > How do I use Detail Textures?

How do I use Detail Textures?

A Detail texture is a small, fine pattern which is faded in as you approach a surface, for example wood grain, imperfections in stone, or earthly details on a terrain. They are explicitly used with the Diffuse Detail shader.

Detail textures must tile in all directions. Color values from 0-127 makes the object it's applied to darker, 128 doesn't change anything, and lighter colors make the object lighter. It's very important that the image is centered around 128 - otherwise the object it's applied to will get lighter or darker as you approach.

  1. Draw or find a grayscale image of the detail texture.

    The Detail Texture


    The Levels
  2. Save the image next to your main texture.
  3. In Unity, select the image and under "Generate Mip Maps", enable Fades Out and set the sliders to something like this in the Import Settings in the Inspector.
  4. The top slider determines how small the texture should before before beginning to fade out, and the bottom determines how far away it is before the detail texture completely disapear.


    s.
  5. In the Material Inspector on the right, select Diffuse Detail from the Shader drop-down:
  6. Drag your texture from the Project View to the Detail texture slot.
  7. Set the Tiling values to a high value

Page last updated: 2009-02-16