Skip to content

Commit ca23245

Browse files
authored
Add doc about Material.cullBackFaces (#1415)
1 parent 28a0b52 commit ca23245

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

content/features/featuresDeepDive/materials/using/materials_introduction.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ When _backFaceCulling_ is false the back faces are not removed during rendering,
165165

166166
<Playground id="#YDO1F#20" title="Backface Culling Example" description="Simple example of using backface culling." image="/img/playgroundsAndNMEs/divingDeeperMaterialsIntro7.jpg"/>
167167

168+
Note that backface culling is one aspect of face culling: you can also perform frontface culling if you wish! Backface culling is much more commonly used than frontface culling, but in some cases you may want to enable frontface culling. To do so, set the material property _cullBackFaces_ to **false**. Note that you must always set _backFaceCulling_ to **true** to enable culling! _backFaceCulling_ is misnamed for historical reasons, and in order to maintain backward compatibility, we cannot rename it to _faceCulling_.
169+
168170
## WireFrame
169171

170172
Every material has the capacity to display as a wireframe by setting the wireframe accessor of the material to true.
@@ -198,3 +200,4 @@ This enables scenarios where blending materials and wireframes is necessary. In
198200
## Local File Access
199201

200202
An important thing to remember, is that for security reasons, web browsers don't allow local files to be accessed for web pages. This includes any texture files you are using. You can use a local server or an image hosting service that is CORS enabled.
203+

0 commit comments

Comments
 (0)