Module updating
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
module('entity')
|
||||
module('entityposition')
|
||||
module('entitymaterial')
|
||||
module('glm')
|
||||
module('color')
|
||||
|
||||
-- Position
|
||||
local posComp = entityAddComponent(ENTITY_ID, COMPONENT_TYPE_POSITION)
|
||||
entityPositionSetPosition(ENTITY_ID, posComp, vec3(1, 2, 3))
|
||||
|
||||
-- Material
|
||||
local matComp = entityAddComponent(ENTITY_ID, COMPONENT_TYPE_MATERIAL)
|
||||
local material = entityMaterialGetShaderMaterial(ENTITY_ID, matComp)
|
||||
material.unlit.color = COLOR_BLUE
|
||||
Reference in New Issue
Block a user