Difference between revisions of "love.graphics.setMeshCullMode"
m |
m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{newin|[[ | + | {{newin|[[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. | ||
− | This 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. | + | This 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]]. |
+ | By default, both front- and back-facing triangles in Meshes are rendered. | ||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
Line 18: | Line 19: | ||
* [[love.graphics.getMeshCullMode]] | * [[love.graphics.getMeshCullMode]] | ||
* [[love.graphics.setFrontFaceWinding]] | * [[love.graphics.setFrontFaceWinding]] | ||
− | * [[love.graphics. | + | * [[love.graphics.setDepthMode]] |
* [[Mesh]] | * [[Mesh]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 22:52, 11 November 2019
Available since LÖVE 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.
By default, both front- and back-facing triangles in Meshes are rendered.
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
- love.graphics
- love.graphics.getMeshCullMode
- 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