add 3d transform for renderer component

This commit is contained in:
2019-11-30 07:35:50 +07:00
parent 49a74cd837
commit 59c7d8763b
7 changed files with 113 additions and 21 deletions

View File

@@ -4,7 +4,19 @@ local renderer = {
enabled = true,
---@type boolean
disabled = false
disabled = false,
---@type t3f
transform = t3f.identity(),
---@type v3f
translation = v3f.zero(),
---@type q4f
rotation = q4f.identity(),
---@type v3f
scale = v3f.unit()
}
---@overload fun(self: renderer)