NiAlphaPropertySetBlendState

From the Oblivion ConstructionSet Wiki
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]