WebGL2 rendering library.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
src
.babelrc
.eslintrc.json
.gitignore
LICENSE
README.md
hdr.js
index.d.ts
index.html
package.json
tsconfig.json
webpack.config.js

README.md

RedCube.js

A javascript library for rendering webgl. RedCube is a minimalistic viewer used Khronos glTF 2.0 format.

Install

npm install redcube.js

Features

• Create 3D model in Blender and others, then render it in Browser;

• No dependencies;

• Support textures, transform animation, skinned animation, weight animation, PBR.

How to convert 3D model to gltf

COLLADA2GLTF - Command-line tool to convert COLLADA to glTF

Usage

Demo

const canvas = document.querySelector('canvas');
const renderer = new RedCube('./box.gltf', canvas);
renderer.init()
    .then(() => {
        console.log('loaded');
    });