summaryrefslogtreecommitdiff
path: root/honey/ecs/render.lua
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-05-12 01:16:46 -0500
committersanine <sanine.not@pm.me>2023-05-12 01:16:46 -0500
commit3275ae4948fd2c1bb8da780214cbb741dc3178be (patch)
tree69dbf1d5b56896e1212454e5f79daaec1d201ec1 /honey/ecs/render.lua
parent14195dac1eda9140192ca07003258715b8b0abd3 (diff)
begin refactor
Diffstat (limited to 'honey/ecs/render.lua')
-rw-r--r--honey/ecs/render.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/honey/ecs/render.lua b/honey/ecs/render.lua
index abeac04..1e41e7a 100644
--- a/honey/ecs/render.lua
+++ b/honey/ecs/render.lua
@@ -67,6 +67,15 @@ system = function(params)
(node and node._matrix) or
Mat4():identity()
-- get shader
+ if not tbl.shader then
+ print(node)
+ print(node and node._matrix)
+ print(node and node.name)
+ print(node and node.parent)
+ for k, v in pairs(tbl) do
+ print(k, v)
+ end
+ end
local shader = honey.shader.loadShader(
tbl.shader.vertex, tbl.shader.fragment
)