Difference between revisions of "love.graphics.setMeshCullMode"

(Created page)
 
m
Line 1: Line 1:
 
{{newin|[[0.11.0]]|110|type=function}}
 
{{newin|[[0.11.0]]|110|type=function}}
 
 
Sets whether [[love.graphics.setFrontFaceWinding|back-facing]] triangles in a [[Mesh]] are culled.
 
Sets whether [[love.graphics.setFrontFaceWinding|back-facing]] triangles in a [[Mesh]] are culled.
  

Revision as of 00:12, 15 January 2018

Available since LÖVE 0.11.0
This function is not supported in earlier versions.

Sets whether back-facing triangles in a Mesh are culled.

This is designed for use with low level custom hardware-accelerated 3D rendering via custom vertex attributes on Meshes, custom vertex shaders, and depth testing with a depth buffer.

Function

Synopsis

love.graphics.setMeshCullMode( mode )

Arguments

CullMode mode
The Mesh face culling mode to use (whether to render everything, cull back-facing triangles, or cull front-facing triangles).

Returns

Nothing.

See Also


Other Languages