Difference between revisions of "NiMaterialPropertyGetAmbientColor"
Jump to navigation
Jump to search
Tag: Manual revert |
|||
Line 20: | Line 20: | ||
[[Category:NifSE|MaterialPropertyGetAmbientColor]] | [[Category:NifSE|MaterialPropertyGetAmbientColor]] | ||
[[Category:NifSE (NiMaterialProperty)|GetAmbientColor]] | [[Category:NifSE (NiMaterialProperty)|GetAmbientColor]] | ||
Latest revision as of 15:20, 21 December 2023
This is a command from NifSE.
Syntax
(array_var:color3) NiMaterialPropertyGetAmbientColor short:nifID short:blockID (array_var:color3) NiAlphaPropGetAmbColor short:nifID short:blockID
Returns a StringMap containing the ambient 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.