2017-10-21 18 views
-1

Babylon.js에서 sphere의 반사광을 어떻게 제거 할 수 있습니까?Babylon.js가 Sphere의 빛 반사를 제거합니다.

// 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) 

내가 구의 절반에 불을하고 싶지만, 빨간색 원에 반사하지 않고 : 내가 찾은

enter image description here

답변

-1

솔루션 :

당신이 실제로 무엇을
newBox.material = someMaterial 
newBox.material.specularColor = new BABYLON.Color3(0, 0, 0); 
+1

입니다 [Phong reflection model] (https://en.wikipedia.org/wiki/Phong_reflection_model)을 [Lambertian diffuse reflection model] (https://en.wikipedia.org/wiki/Lambertian_reflectance)로 줄이려면 t 그는 phong 모델의 반사광을 강조합니다. – Rabbid76

+0

그래, 작동하고있어. :-) – Vesmy