提交 608a543c 编写于 作者: 0 06wj

fix gltf KHR_lights_punctual no color bug

上级 afe390c2
......@@ -282,7 +282,11 @@ THREE.GLTFLoader = ( function () {
var light = lights[ lightId ];
var lightNode;
var color = new THREE.Color().fromArray( light.color );
// the color default value is [1, 1, 1]
var color = new THREE.Color(1, 1, 1);
if ( light.color !== undefined ) {
color.fromArray( light.color )
}
switch ( light.type ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册