#

Rendering states examples

Backface culling

Cull back faces :

//: state cull_face on
#

Draw front and back faces :

//: state cull_face off
#

Blending

No blending, fully opaque objects :

//: state blend none
#

Standard blending mode for back to front draw order :

//: state blend over
#

Standard blending mode for back to front draw order. Assume color is pre-multiplied by alpha :

//: state blend over_premult