Difference between revisions of "Template:NifSE NiAlphaProperty Test Functions"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(New page: <noinclude>List of the texture slots used by <tt>NiAlphaProperty</tt> blocks. Used by NifSE. </noinclude>== Test Functions == Th...)
 
imported>DragoonWraith
Line 3: Line 3:
</noinclude>== Test Functions ==
</noinclude>== Test Functions ==


The function of each value is equivalent to the OpenGL test function of similar name.
The function of each value is equivalent to the OpenGL test function of similar name. These functions compare the alpha value of each pixel against the <tt>NiAlphaProperty</tt>'s [[NiAlphaPropertyGetTestThreshold|test threshold]] before painting it.
* <tt>ALWAYS = 0</tt>
* <tt>ALWAYS = 0</tt>
* <tt>LESS = 1</tt>
* <tt>LESS = 1</tt>

Revision as of 17:31, 21 January 2011

List of the texture slots used by NiAlphaProperty blocks. Used by NifSE.

Test Functions

The function of each value is equivalent to the OpenGL test function of similar name. These functions compare the alpha value of each pixel against the NiAlphaProperty's test threshold before painting it.

  • ALWAYS = 0
  • LESS = 1
  • EQUAL = 2
  • LEQUAL = 3
  • GREATER = 4
  • NOTEQUAL = 5
  • GEQUAL = 6
  • NEVER = 7