
Community chat. Join us!
Download the minified library or link the one from CDN
<script src="https://github.com/WhitestormJS/whs.js/raw/v2.1.6/js/three.min.js"></script>
<script src="https://github.com/WhitestormJS/whs.js/raw/v2.1.6/js/whs.min.js"></script>
The code below makes a WHS.App instance which handles all your modules and components for better work with WebGL. This one creates a scene, camera and renderer - we add the following modules to the App.
const app = new WHS.App([
new WHS.ElementModule(), // Apply to DOM.
new WHS.SceneModule(), // Create a new THREE.Scene and set it to app.
new WHS.DefineModule('camera', new WHS.PerspectiveCamera({ // Apply a camera.
position: new Vector3(0, 0, 50)
})),
new WHS.RenderingModule({bgColor: 0x162129}), // Apply THREE.WebGLRenderer
new WHS.ResizeModule() // Make it resizable.
]);
app.start(); // Run app.
# Install npm version
$ npm install whs
Worker (Multithreading)| Name | Status | Description |
|---|---|---|
| whs-module-statsjs | WhitestormJS module for JavaScript Performance Monitor ⚡⌛ | |
| whs-module-dat.gui | User Interface for runtime editing properties 🔑🛠🔩 | |
| physics-module-ammonext | Physics module based on Ammo.js | |
| whs-module-audio | WIP | Audio module for 3D positional sound 🔉 |
| whs-vrkit | Module for Virtual Reality |
Support us with a monthly donation and help us continue framework development🎉 and adding new features💡🎁.
$ claude mcp add whs.js \
-- python -m otcore.mcp_server <graph>