![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
threejs
NotJc
这个作者很懒,什么都没留下…
展开
-
threejs gui.d.ts
官方的 type 里面没有 gui,自己看着写了一个。只有简单的功能 根据 params 约束 name ,且能确定 onChange 回调参数类型 object.value为 string | number | boolean才能 add(),否则只能 addFolder() 数字才支持 max() 和 min() .d.ts export class GUI<T = any> { add<K extends keyof BaseValueObject<T>>原创 2022-01-18 17:22:20 · 699 阅读 · 1 评论 -
threejs 右下角视角指示器
从官方editor中整理得到 import * as THREE from 'three' export class ViewHelper extends THREE.Object3D { editorCamera: THREE.Camera private readonly container: HTMLElement private readonly panel: HTMLElement private readonly point = new THREE.Vecto原创 2021-07-23 17:36:27 · 2718 阅读 · 11 评论