三重css2drender
threejs正式将CSS2DRender.js与npm一起应用
安装
npm i --save three-css2drender
用法
import * as THREE from 'three'
import { CSS2DRenderer , CSS2DObject } from 'three-css2drender'
let scene = new THREE . Scene ( )
// init CSS2DRenderer
labelRenderer = new CSS2DRenderer ( ) ;
labelRenderer . setSize ( window . innerWidth , window . innerHeight ) ;
labelRenderer . domElement . style . position = 'a
1