There's a couple of things here, the most noticeable is that your material is set to .blue, and you're trying to light it using a .red light. The material's made from the colour contains zero red (in rgb form), so the light will have no effect on it. If you're using glasses with a red filter on them, green and blue will just appear black, only the reds will shine through.
Even if you change it to a .white
light, it won't look much different though. This is just what it looks like with the default SimpleMaterial with isMetallic set to true; all you'll see is reflections of light, rather than see a light hitting it.
This is because the roughness of the material is set to 0, increase it just a tiny bit you'll see the cube light up with your point light.
var material = SimpleMaterial(color: .blue, isMetallic: true)
material.roughness = 0.1
Also worth noting, your light intensity is quite high, I assume this is just because you weren't seeing an effect before!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…