NiAlphaPropertySetTriangleSortMode
Revision as of 17:35, 21 January 2011 by imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (bool:success) NiAlphaPropertySetTriangleSortMode bool:sort short:nifID ''short:blockID'' (bool:success) NiAlphaPropSetTri...)
This is a command from NifSE.
Syntax
(bool:success) NiAlphaPropertySetTriangleSortMode bool:sort short:nifID short:blockID (bool:success) NiAlphaPropSetTriSort bool:sort short:nifID short:blockID
Sets whether or not the NiAlphaProperty specified by blockID has triangle sorting turned on. If on, the the triangles that make up an object will be sorted based on distance, and drawn from farthest away to closest. This reduces errors when using alpha blending.
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.