NiVertexColorPropertySetLightingMode

This is a command from NifSE.

Syntax

(bool:success) NiVertexColorPropertySetLightingMode short:lightMode short:nifID short:blockID
(bool:success) NiVertColorPropSetLightMode short:lightMode short:nifID short:blockID

Sets the lighting mode used by the NiVertexColorProperty specified by blockID. The possible values and their meanings are indicated below.

Returns 1 if successful, 0 otherwise.

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 AlsoEdit