Open lizehua-cn opened 1 year ago
如果相机有父级, 获取相机父级 位移, 缩放, 四元数并设置到新相机上,
如果相机使用轨道控制器OrbitControls
, 控制器需设置聚焦点
renderer.setClearColor(0x000000, 0)
环境遮挡贴图(aoMap) 需要设置第二组 UV
geometry.setAttribute('uv2', new THREE.BufferAttribute(geometry.attributes.uv.array, 2))
置换贴图 需要设置比较多的顶点, 需要配合 displacementScale
设置凸出程度
TransformControls 移动时报错 NaN
解决: 平移旋转缩放属性值需设置为数字, 数字字符串不行