Object3D在gltf中定义为Light不能按预期工作[THREE.JS]

时间:2019-11-07 16:38:53

标签: javascript three.js light gltf

如标题所示,我使用THREE.GLTFLOADER加载了Gltf文件,但一切正常!当我解析每个组件(网格,场景,Object3D)时,我跌落在Object3D上,如下调用Default_light。用我的天才大脑,我尝试了camera.add(这个“漂亮”的婴儿)。

Object3D = 
castShadow: false
children: []
frustumCulled: true
isLight: true
layers: Layers {mask: 1}
matrix: Matrix4 {elements: Array(16)}
matrixAutoUpdate: true
matrixWorld: Matrix4 {elements: Array(16)}
matrixWorldNeedsUpdate: false
name: "Default_light"
parent: PerspectiveCamera {uuid: "D0FBA95C-6EE5-4327-AB04-812EDFFCA866", name: "camera", type: "PerspectiveCamera", parent: Scene, children: Array(2), …}
position: Vector3 {x: 0, y: 0, z: 0}
quaternion: Quaternion {_x: 0, _y: 0, _z: 0, _w: 1, onChangeCallback: ƒ}
receiveShadow: false
renderOrder: 0
rotation: Euler {_x: -0, _y: 0, _z: -0, _order: "XYZ", onChangeCallback: ƒ}
scale: Vector3 {x: 1, y: 1, z: 1}
type: "Object3D"
up: Vector3 {x: 0, y: 1, z: 0}
userData: {}
uuid: "2B5625C5-A4AA-4E50-B3BC-05EFB15A5AE6"
visible: true

**** AND ...什么也没发生。 *****

是的,我感到很愚蠢,但这是因为KHR_lights吗?还是有些古怪?

如果您能帮助我,我将不胜感激。

谢谢!

0 个答案:

没有答案