Hi there,
Sorry for the really basic question but I’m trying to apply a texture to a sphere entity at runtime. There seem to be no errors with the code but when testing, all I get is a black texture. My current code is:
// Add material
ecs.Material.set(world, sphereEntity, {
r: 255,
g: 255,
b: 255,
textureSrc: './assets/ballTexture1.png',
roughness: 0.5,
metalness: 0.5,
})
Thank you in advance
