Babylon.js 移除球体的光反射
Babylon.js remove light reflection of Sphere
如何去除 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)
我想点亮半个球体,但红圈没有反射:
我找到了解决方案:
newBox.material = someMaterial
newBox.material.specularColor = new BABYLON.Color3(0, 0, 0);
如何去除 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)
我想点亮半个球体,但红圈没有反射:
我找到了解决方案:
newBox.material = someMaterial
newBox.material.specularColor = new BABYLON.Color3(0, 0, 0);