clipping planes for camera

This commit is contained in:
2020-01-28 08:01:34 +07:00
parent bd085efa3a
commit 8f0fac1750
20 changed files with 297 additions and 159 deletions

View File

@@ -9,12 +9,15 @@ local camera = {
---@type integer
depth = 0,
---@type number
znear = 0.0,
---@type number
zfar = 1000.0,
---@type rect
viewport = rect.zero(),
---@type m4f
projection = m4f.identity(),
---@type color
background = color.white()
}