Difference between revisions of "NiMaterialPropertySetSpecularColor"
Jump to navigation
Jump to search
imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (bool:success) NiMaterialPropertySetSpecularColor array_var:color3 short:nifID ''short:blockID'' (bool:success) NiAlphaPro...) |
|||
Line 11: | Line 11: | ||
map["g"]:float - green intensity | map["g"]:float - green intensity | ||
map["b"]:float - blue intensity | map["b"]:float - blue intensity | ||
O | |||
The default value of <tt>blockID</tt>, 0, indicates the NIF's root, a [[:Category:NifSE (NiNode)|<tt>NiNode</tt>]]. <tt>NiNode</tt> blocks are not derived from <tt>NiMaterialProperty</tt>, so this function will always require an explicit <tt>blockID</tt>. | The default value of <tt>blockID</tt>, 0, indicates the NIF's root, a [[:Category:NifSE (NiNode)|<tt>NiNode</tt>]]. <tt>NiNode</tt> blocks are not derived from <tt>NiMaterialProperty</tt>, so this function will always require an explicit <tt>blockID</tt>. | ||
Revision as of 15:30, 21 December 2023
This is a command from NifSE.
Syntax
(bool:success) NiMaterialPropertySetSpecularColor array_var:color3 short:nifID short:blockID (bool:success) NiAlphaPropSetSpecColor array_var:color3 short:nifID short:blockID
Sets 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
O 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.