NiMaterialPropertyGetSpecularColor

From the Oblivion ConstructionSet Wiki
Revision as of 12:46, 23 January 2011 by imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (array_var:color3) NiMaterialPropertyGetSpecularColor short:nifID ''short:blockID'' (array_var:color3) NiAlphaPropGetSpecC...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(array_var:color3) NiMaterialPropertyGetSpecularColor short:nifID short:blockID
(array_var:color3) NiAlphaPropGetSpecColor short:nifID short:blockID

Returns a StringMap containing the specular color data of the NiMaterialProperty specified by blockID.

The array_var:color3 is a StringMap with the following elements:

map["r"]:float - red intensity
map["g"]:float - green intensity
map["b"]:float - blue intensity

The default value of blockID, 0, indicates the NIF's root, a NiNode. NiNode blocks are not derived from NiMaterialProperty, so this function will always require an explicit blockID.

See Also[edit | edit source]