代码拉取完成,页面将自动刷新
Community chat. Join us!
Download the minified library or link the one from CDN
<script src="js/three.min.js"></script>
<script src="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💡🎁.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。