如何从Babylon.js的球体中消除(点)光的反射?

// Point light.
const light = new BABYLON.PointLight('myLight', new BABYLON.Vector3(0, 1, 0), scene)

// Sphere with size 100.
const newBox = BABYLON.Mesh.CreateSphere('mySphere', 64, 100, scene)


我想照亮一半的球体,但红色圆圈中没有反射:

javascript - Babylon.js消除Sphere的光反射-LMLPHP

最佳答案

我找到了解决方案:

newBox.material = someMaterial
newBox.material.specularColor = new BABYLON.Color3(0, 0, 0);

07-26 05:45