redcube.js
TypeScript icon, indicating that this package has built-in type declarations

2.3.2 • Public • Published

RedCube.js

Demo

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

Features

(Features checking page)

• Fully support glTF main spec

• Ratified Khronos Extensions

• EXT_lights_image_based

• KHR_mesh_quantization

• KHR_materials_clearcoat

Platforms

Browser, Node.js

How to convert 3D model to gltf

• Blender 2.80 File -> Export -> glTF 2.0

Sketchfab 100,000+ models

Usage

<canvas style="width: 600px; height: 600px;"></canvas>

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

Install

npm install redcube.js

Package Sidebar

Install

npm i redcube.js

Weekly Downloads

0

Version

2.3.2

License

MIT

Unpacked Size

10.6 MB

Total Files

74

Last publish

Collaborators

  • reon