Render state

From ENIGMA

(Difference between revisions)
Jump to: navigation, search
(Render Modes)
Line 2: Line 2:
== Render Modes ==
== Render Modes ==
-
{| class="wikitable" cellpadding=5 cellspacing=0 border=0 style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray; {{box-shadow|0.1em|0.1em|1em|rgba(0,0,0,0.75)}};"
+
{| class="consttab" width=""
-
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
+
|-  
-
| '''Constant'''  
+
! '''Constant''' !! '''Description'''
-
| '''Description'''
+
|-
|-
|'''rs_fill'''
|'''rs_fill'''
Line 18: Line 17:
== Face Modes ==
== Face Modes ==
-
{| class="wikitable" cellpadding=5 cellspacing=0 border=0 style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray; {{box-shadow|0.1em|0.1em|1em|rgba(0,0,0,0.75)}};"
+
{| class="consttab" width=""
-
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
+
|-  
-
| '''Constant'''  
+
! '''Constant''' !! '''Description'''
-
| '''Description'''
+
|-
|-
|'''rs_front'''
|'''rs_front'''
Line 34: Line 32:
== Orientations ==
== Orientations ==
-
{| class="wikitable" cellpadding=5 cellspacing=0 border=0 style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray; {{box-shadow|0.1em|0.1em|1em|rgba(0,0,0,0.75)}};"
+
{| class="consttab" width=""
-
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
+
|-  
-
| '''Constant'''  
+
! '''Constant''' !! '''Description'''
-
| '''Description'''
+
|-
|-
|'''rs_clockwise'''
|'''rs_clockwise'''
Line 47: Line 44:
== Quality Hints ==
== Quality Hints ==
-
{| class="wikitable" cellpadding=5 cellspacing=0 border=0 style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray; {{box-shadow|0.1em|0.1em|1em|rgba(0,0,0,0.75)}};"
+
{| class="consttab" width=""
-
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
+
|-  
-
| '''Constant'''  
+
! '''Constant''' !! '''Description'''
-
| '''Description'''
+
|-
|-
|'''rs_nicest'''
|'''rs_nicest'''
Line 63: Line 59:
== Fog Mode ==
== Fog Mode ==
-
{| class="wikitable" cellpadding=5 cellspacing=0 border=0 style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray; {{box-shadow|0.1em|0.1em|1em|rgba(0,0,0,0.75)}};"
+
{| class="consttab" width=""
-
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
+
|-  
-
| '''Constant'''  
+
! '''Constant''' !! '''Description'''
-
| '''Description'''
+
|-
|-
|'''rs_exp'''
|'''rs_exp'''
Line 79: Line 74:
== Operators ==
== Operators ==
-
{| class="wikitable" cellpadding=5 cellspacing=0 border=0 style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray; {{box-shadow|0.1em|0.1em|1em|rgba(0,0,0,0.75)}};"
+
{| class="consttab" width=""
-
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
+
|-  
-
| '''Constant'''  
+
! '''Constant''' !! '''Description'''
-
| '''Description'''
+
|-
|-
|'''rs_never'''
|'''rs_never'''

Revision as of 05:14, 1 May 2013

This article is an overview of render state/mode related constants.

Contents

Render Modes

Constant Description
rs_fill Fill the entire shape.
rs_line Only draw the edges of each face.
rs_point Only draw each vertex as a single point.

Face Modes

Constant Description
rs_front front faces, defined by orientation
rs_back back faces, defined by orientation
rs_front_back front and back faces

Orientations

Constant Description
rs_clockwise clockwise face culling
rs_counterclockwise counter-clockwise face culling

Quality Hints

Constant Description
rs_nicest nicest looking
rs_fastest fastest to render
rs_dontcare does not matter which

Fog Mode

Constant Description
rs_exp exponential fog
rs_exp2 exponential fog 2
rs_linear linear fog

Operators

Constant Description
rs_never Always False
rs_less source Z < depth Z
rs_equal source Z = depth Z
rs_lequal source Z <= depth Z
rs_greater source Z > depth Z
rs_notequal source Z != depth Z
rs_gequal source Z >= depth Z
rs_always Always True
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox