Difference between revisions of "NiMaterialPropertySetAmbientColor"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(New page: This is a command from NifSE. '''Syntax''' (bool:success) NiMaterialPropertySetAmbientColor array_var:ambColor short:nifID ''short:blockID'' (bool:success) NiAlphaPr...)
 
imported>DragoonWraith
 
Line 2: Line 2:


'''Syntax'''
'''Syntax'''
  (bool:success) NiMaterialPropertySetAmbientColor array_var:ambColor short:nifID ''short:blockID''
  (bool:success) NiMaterialPropertySetAmbientColor array_var:color3 short:nifID ''short:blockID''
  (bool:success) NiAlphaPropSetAmbColor array_var:ambColor short:nifID ''short:blockID''
  (bool:success) NiAlphaPropSetAmbColor array_var:color3 short:nifID ''short:blockID''


Sets the ambient color data of the [[:Category:NifSE (NiMaterialProperty)|<tt>NiMaterialProperty</tt>]] specified by <tt>blockID</tt>.
Sets the ambient color data of the [[:Category:NifSE (NiMaterialProperty)|<tt>NiMaterialProperty</tt>]] specified by <tt>blockID</tt>.


The ambient color <tt>array_var</tt> is a StringMap with the following elements:
The <tt>array_var:color3</tt> is a StringMap with the following elements:
  map["r"]:float - red intensity
  map["r"]:float - red intensity
  map["g"]:float - green intensity
  map["g"]:float - green intensity

Latest revision as of 12:44, 23 January 2011

This is a command from NifSE.

Syntax

(bool:success) NiMaterialPropertySetAmbientColor array_var:color3 short:nifID short:blockID
(bool:success) NiAlphaPropSetAmbColor array_var:color3 short:nifID short:blockID

Sets 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.

See Also[edit | edit source]