文件名称:three-web-layer:在3D场景中使用2D Web内容
文件大小:1.47MB
文件格式:ZIP
更新时间:2024-06-09 10:22:00
TypeScript
三层网 一个方便的工具,可使用基于html2canvas的three.js在WebGL中呈现复杂的交互式2D Web内容 动机 该项目的目标是利用2D网站的功能来布局和设计3D环境中呈现的内容。 德莫斯 安装 通过NPM安装: npm i three-web-layer import WebLayer3D from 'three-web-layer' 或者,使用UMD构建通过脚本进行安装: < script src =" three-web-layer.umd.js " > </ script > 原料药 // create a root WebLayer3D instance. const rootLayer = new WebLayer3D ( domElement , { // these options are all optional pixelRa