NiMaterialProperty

From GECK
Jump to: navigation, search

NiMaterialProperty tells the engine how to render a NiGeometry's surface properties.

A typical example of a NiMaterialProperty.

Its fields are:

  • Name: It's advised to come up with unique names for NiMaterialProps when you're animating via NiControllerManager.
  • Num Extra Data List: Total number of Extra Data blocks attached.
  • Extra Data List: An Extra Data block can be attached here.
  • Controller: Several types of material animation can be manipulated via controllers. Attach them directly if you only need one animation that loops.
  • Specular Color: Specular color is currently unused and does not affect anything. In TES games, it is used to tint the light shine on objects.
  • Emissive Color: Determines which color objects glow. Combine with colored glowmaps in BSShaderTextureSet to get multiple colors at the same time.
  • Glossiness: Determines how "shiny" an object is. Affected by specular maps.
  • Alpha: Manipulates the alpha of an object. Manipulated by NiAlphaControllers.
  • Emissive Mult: Determines how bright the Emissive Color is. 1.000000 is generally too dim to really notice.