three-css2drenderer:threejs正式将CSS2DRender.js与npm一起应用

时间:2024-06-03 17:50:31
【文件属性】:

文件名称:three-css2drenderer:threejs正式将CSS2DRender.js与npm一起应用

文件大小:2KB

文件格式:ZIP

更新时间:2024-06-03 17:50:31

JavaScript

三重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


【文件预览】:
three-css2drenderer-master
----package.json(607B)
----README.md(1KB)
----CSS2DRenderer.js(2KB)

网友评论