Difference between revisions of "love.graphics.getMeshCullMode"
m (0.11.0 -> 11.0 + validate link) |
m (Fixed typo) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
Gets whether [[love.graphics.setFrontFaceWinding|back-facing]] triangles in a [[Mesh]] are culled. | Gets whether [[love.graphics.setFrontFaceWinding|back-facing]] triangles in a [[Mesh]] are culled. | ||
− | Mesh face culling is designed for use with low level custom hardware-accelerated 3D rendering via [[love.graphics.newMesh|custom vertex attributes]] on Meshes, custom [[love.graphics.newShader|vertex shaders]], and [[love.graphics. | + | Mesh face culling is designed for use with low level custom hardware-accelerated 3D rendering via [[love.graphics.newMesh|custom vertex attributes]] on Meshes, custom [[love.graphics.newShader|vertex shaders]], and [[love.graphics.setDepthMode|depth testing]] with a [[PixelFormat|depth buffer]]. |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | mode = love.graphics.getMeshCullMode( | + | mode = love.graphics.getMeshCullMode( ) |
</source> | </source> | ||
=== Arguments === | === Arguments === |
Latest revision as of 13:54, 13 June 2021
Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Gets whether back-facing triangles in a Mesh are culled.
Mesh face culling 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
mode = love.graphics.getMeshCullMode( )
Arguments
None.
Returns
CullMode mode
- The Mesh face culling mode in use (whether to render everything, cull back-facing triangles, or cull front-facing triangles).
See Also
- love.graphics
- love.graphics.setMeshCullMode
- love.graphics.setFrontFaceWinding
- love.graphics.setDepthMode
- Mesh
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info