【文件属性】:
文件名称:ogl-basis-texture-loader:将Threejs BasisTextureLoader修改为OGL
文件大小:460KB
文件格式:ZIP
更新时间:2021-04-16 12:18:22
JavaScript
ogl基础纹理加载器
将Threejs BasisTextureLoader修改为
用法
:warning: 将base-transcoder目录复制到您的公共目录。
// import
import { Renderer } from "ogl" ;
import { BasisTextureLoader } from "./basis-texture-loader" ;
BasisTextureLoader . setTranscoderPath ( "you-public-directory/transcoder" ) ;
// create
const renderer = new Renderer ( ) ;
const basisLoader = new BasisTextureLoader ( renderer . gl ) ;
// load
const texture = awai
【文件预览】:
ogl-basis-texture-loader-main
----index.js(22KB)
----basis-transcoder()
--------basis_transcoder.wasm(437KB)
--------msc_basis_transcoder.wasm(394KB)
--------msc_basis_transcoder.js(61KB)
--------basis_transcoder.js(61KB)
--------README.md(2KB)
----README.md(554B)