harfang3d/doc/doc/MakeFrustum.md

8 lines
326 B
Markdown
Raw Normal View History

2021-12-15 19:23:12 +00:00
Create a projection frustum. This object can then be used to perform culling using [TestVisibility].
```python
# Compute a perspective matrix
proj = hg.ComputePerspectiveProjectionMatrix(0.1, 1000, hg.FovToZoomFactor(math.pi/4), 1280/720)
# Make a frustum from this projection matrix
frustum = hg.MakeFrustum(proj)
2021-10-13 12:40:31 +00:00
```