Wednesday, March 8, 2017

Unity Shader Property Names

Legacy

  • _MainTex (Texture, diffuse color in the RGB channels, transparency in the A channel)
  • _Color (Color, diffuse color tint. This is multiplied by _MainTex)
  • _SpecMap (Texture, specular map)
  • _SpecColor (Color, specular color tint)
  • _Shininess (Value or Slider, controls glossiness)
  • _BumpMap (Texture, normal map)
  • _TransparencyLM (Texture, rgb channels define colored transparency)
  • _Illum (Texture, for emissive materials. This will be a mask of _MainTex * _Color)

Standard

  • Albedo  (diffuse color)
  • Normal (tangent space normal, if written)
  • Emission
  • Specular (specular power in 0..1 range)
  • Gloss (specular intensity)
  • Alpha (alpha for transparencies)

Physical (metallic)

  • Albedo (base - diffuse or specular - color)
  • Normal (tangent space normal, if written)
  • Emission
  • Metallic (0=non-metal, 1=metal)
  • Smoothness (0=rough, 1=smooth)
  • Occlusion (occlusion - default 1)
  • Alpha (alpha for transparencies)

Physical (specular)

  • Albedo (diffuse color)
  • Specular (specular color)
  • Normal (tangent space normal, if written)
  • Emission
  • Smoothness (0=rough, 1=smooth)
  • Occlusion (occlusion  - default 1)
  • Alpha (alpha for transparencies)

No comments:

Post a Comment