ThreeJS disable rendering of faces behind the Camera

前端 未结 2 1863
生来不讨喜
生来不讨喜 2021-01-27 14:26

I am Writing a Panorama Viewer. The Image is Displayed in a Sphere with a variable amount of faces. I want it only to render the faces in the camera direction (

2条回答
  •  一个人的身影
    2021-01-27 15:03

    If rolling your own vertices, edges, indices, a triangle with vertices stored in counterclockwise order is said to be front facing by default :

    "To activate face culling, GL_CULL_FACE​ must first be enabled with glEnable​. By default, face culling is disabled"
    

提交回复
热议问题