Re:
-- Capsule Material Demo
function setup()
scene = craft.scene()
if not OrbitViewer then errorText = errorText.."Please include Cameras as a dependency\n\n" end
local entity = scene:entity()
local model = craft.model(asset.builtin.Primitives.Capsule)
model.material = craft.material(asset.builtin.Materials.Specular)
model.material.map = readImage(asset.builtin.Surfaces.Basic_Bricks_Color)
model.material.diffuse = color(255, 14, 0)
entity.model = model
v=scene.camera:add(OrbitViewer,entity.position, 5, 0, 20)
end
function draw()
scene:update(DeltaTime)
scene:draw()
end
…the capsule shows neither the assigned material.map, nor the color set by material.diffuse… it’s just grey… any help?