NiAlphaPropertySetBlendState

From the Oblivion ConstructionSet Wiki
Revision as of 16:45, 21 January 2011 by imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (bool:success) NiAlphaPropertySetBlendState bool:blendState short:nifID ''short:blockID'' (bool:success) NiAlphaPropSetBle...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(bool:success) NiAlphaPropertySetBlendState bool:blendState short:nifID short:blockID
(bool:success) NiAlphaPropSetBlendState bool:blendState short:nifID short:blockID

Sets whether or not the NiAlphaProperty specified by blockID has alpha blending turned on. If on, the blending functions will be used to mix the values based on the alpha component of each pixel in the texture.

Returns 1 if it is successful in setting the blend state, 0 otherwise.

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

See Also[edit | edit source]