8000 GitHub - jespervos/ogl-basis-texture-loader: Adaptation of Threejs BasisTextureLoader for OGL
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jespervos/ogl-basis-texture-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

⚠️ OGL now natively supports Basis Textures ⚠️

ogl-basis-texture-loader

Adaptation of Threejs BasisTextureLoader for OGL

Usage

⚠️ Copy basis-transcoder directory to your public directory.

// 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 = await basisLoader.load("path/to/file.basis");

About

Adaptation of Threejs BasisTextureLoader for OGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0