redcube.js
v2.3.2
Published
A javascript library for rendering webgl.
Downloads
11
Readme
RedCube.js
A javascript library for rendering webgl. RedCube is a minimalistic viewer used Khronos glTF 2.0 format.
Features
• 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