NiMaterialPropertySetAmbientColor
Revision as of 12:40, 23 January 2011 by imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (bool:success) NiMaterialPropertySetAmbientColor array_var:ambColor short:nifID ''short:blockID'' (bool:success) NiAlphaPr...)
This is a command from NifSE.
Syntax
(bool:success) NiMaterialPropertySetAmbientColor array_var:ambColor short:nifID short:blockID (bool:success) NiAlphaPropSetAmbColor array_var:ambColor short:nifID short:blockID
Sets the ambient color data of the NiMaterialProperty specified by blockID.
The ambient color array_var 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.