Can I set the ambient property of a MeshPhongMaterial to false in a three.js imported Blender model? -
i'm doing pupil project , have scene ambient lite , spotlight. i've imported blender model has line:
"colorambient" : [0.6400000190734865, 0.6400000190734865, 0.6400000190734865],
in json file.
is there way turn off property in meshphongmaterial reacts spotlight , not ambient light.
i've tried removing line , setting 0 has had no effect. can turn property off? or should remove ambient lite scene , utilize different type such directional?
thanks help.
in practice, ambient reflectance of material should match material color, known diffuse reflectance. doing create model better.
for example, can this
material.ambient.copy( material.color ); or
material.ambient.set( 0xff0000 ); three.js r.67
three.js blender phong ambient
No comments:
Post a Comment