~nch/gamelog

ref: 75432213d3972f26c03ef636da68ed482f0ac908 gamelog/scene1.lua -rw-r--r-- 508 bytes View raw
75432213 — nc refactoring debug code out a bit 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local m = require('moonglmath') -- math
player_id = new_entity()

local ninja_tex = load_texture('ninja_mask.png')
local ninja_vao = load_mesh('ninja.obj')
drawable.insert(player_id, ninja_vao, m.vec3(0, 0, 0))
texture_binding.insert(player_id, 'diffuse', ninja_tex)

local terrain_tex = load_texture('test.png')
local terrain_vao = load_mesh('terrain.obj')
local terrain_id = new_entity()
drawable.insert(terrain_id, terrain_vao, m.vec3(0, 0, 0))
texture_binding.insert(terrain_id, 'diffuse', terrain_tex)