NiVertexColorPropertyGetLightingMode

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(short:lightMode) NiVertexColorPropertyGetLightingMode short:nifID short:blockID
(short:lightMode) NiVertColorPropGetLightMode short:nifID short:blockID

Returns the integer ID for the lighting mode used by the NiVertexColorProperty specified by blockID. The possible values and their meanings are indicated below.

Returns -1 if the function fails for any reason.

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

Lighting Modes

  • EMISSIVE = 0
  • EMI_AMB_DIF = 1 (emissive and ambient and diffuse, the default)

See Also[edit | edit source]