NiAlphaPropertyGetTriangleSortMode
Jump to navigation
Jump to search
This is a command from NifSE.
Syntax
(bool:success) NiAlphaPropertyGetTriangleSortMode bool:sort short:nifID short:blockID (bool:success) NiAlphaPropGetTriSort bool:sort short:nifID short:blockID
Returns 1 if the NiAlphaProperty specified by blockID has triangle sorting turned on, and 0 if not. 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.
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.