Render state: Difference between revisions

From ENIGMA
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
This article is an overview of render state/mode related constants.
This article is an overview of render state/mode related constants.


{| class="wikitable" cellpadding=5 cellspacing=0 align=left 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)}};"
== Render Modes ==
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
{| class="consttab" width=""
| '''Constant'''
|-  
| '''Description'''
Constant !!  Description  
|-
|-
|'''rs_fill'''
| rs_solid  || Fill the entire shape.
|Fill the entire shape.
|-
|-
|'''rs_line'''
| rs_line || Render in wireframe mode, only draw the edges of each face.
|Only draw the edges of each face.
|-
|-
|'''rs_point'''
| rs_point || Only draw each vertex as a single point.
|Only draw each vertex as a single point.
|}
|}<br>


{| class="wikitable" cellpadding=5 cellspacing=0 align=left 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)}};"
== Face Modes ==
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
{| class="consttab" width=""
| '''Constant'''
|-  
| '''Description'''
Constant !!  Description  
|-
|-
|'''rs_front'''
| rs_front || front faces, defined by orientation
| front faces, defined by orientation
|-
|-
|'''rs_back'''
| rs_back || back faces, defined by orientation
| back faces, defined by orientation
|-
|-
|'''rs_front_back'''
| rs_front_back || front and back faces
| front and back faces
|}
|}


{| class="wikitable" cellpadding=5 cellspacing=0 align=left 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)}};"
== Orientations ==
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
{| class="consttab" width=""
| '''Constant'''
|-  
| '''Description'''
!  Constant  !!  Description
|-
| rs_none || no face culling
|-
|-
|'''rs_clockwise'''
| rs_cw || clockwise face culling
|clockwise face culling
|-
|-
|'''rs_counterclockwise'''
| rs_ccw || counter-clockwise face culling
|counter-clockwise face culling
|}
|}


{| class="wikitable" cellpadding=5 cellspacing=0 align=left 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)}};"
== Quality Hints ==
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
{| class="consttab" width=""
| '''Constant'''
|-  
| '''Description'''
Constant !!  Description  
|-
|-
|'''rs_nicest'''
| rs_nicest || nicest looking
|nicest looking
|-
|-
|'''rs_fastest'''
| rs_fastest || fastest to render
|fastest to render
|-
|-
|'''rs_dontcare'''
| rs_dontcare || does not matter which
|does not matter which
|}
|}


{| class="wikitable" cellpadding=5 cellspacing=0 align=left 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)}};"
== Fog Mode ==
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
{| class="consttab" width=""
| '''Constant'''
|-  
| '''Description'''
Constant !!  Description  
|-
|-
|'''rs_exp'''
| rs_exp || exponential fog
|exponential fog
|-
|-
|'''rs_exp2'''
| rs_exp2 || exponential fog 2
|exponential fog 2
|-
|-
|'''rs_linear'''
| rs_linear || linear fog
|linear fog
|}
|}


{| class="wikitable" cellpadding=5 cellspacing=0 align=left 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)}};"
== Operators ==
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
{| class="consttab" width=""
| '''Constant'''
|-  
| '''Description'''
Constant !!  Description  
|-
|-
|'''rs_never'''
| rs_never || Always False
|Always False
|-
|-
|'''rs_less'''
| rs_less || source Z < depth Z
|source Z < depth Z
|-
|-
|'''rs_equal'''
| rs_equal || source Z = depth Z
|source Z = depth Z
|-
|-
|'''rs_lequal'''
| rs_lequal || source Z <= depth Z
|source Z <= depth Z
|-
|-
|'''rs_greater'''
| rs_greater || source Z > depth Z
|source Z > depth Z
|-
|-
|'''rs_notequal'''
| rs_notequal || source Z != depth Z
|source Z != depth Z
|-
|-
|'''rs_gequal'''
| rs_gequal || source Z >= depth Z
|source Z >= depth Z
|-
|-
|'''rs_always'''
| rs_always || Always True
|Always True
|}
|}

Latest revision as of 10:09, 14 October 2013

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

Render Modes

Constant Description
rs_solid Fill the entire shape.
rs_line Render in wireframe mode, 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_none no face culling
rs_cw clockwise face culling
rs_ccw 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