MIT License

项目介绍

WhitestormJS/whs.js 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 MIT License 许可证,目前获得 6.3k 个 Star、399 次 Fork。

仓库全名
WhitestormJS/whs.js
开源许可证
MIT License
Star 数
6.3k
Fork 数
399
未关闭 Issue
55

README 摘要

Documentation Examples Community chat. [Join us!][discord-url] Table of content Basic setup npm Featured projects Features Donate Why? Basic setup Download the minified library or link the one from CDN 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. NPM Featured…

完整内容见 GitHub 原始 README 或本页 。

常见问题

whs.js 用什么语言开发?

主要使用 JavaScript 编写,采用 MIT License 许可证,目前有 6.3k 个 Star。

whs.js 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 whs.js 的源码?

可以直接克隆仓库:git clone https://github.com/WhitestormJS/whs.js.git;安装与运行步骤见仓库 README。

whs.js 最近还在维护吗?

仓库最近一次更新为 2025年1月1日,当前有 55 个未关闭 Issue;Star 数为 6.3k,可作为社区活跃度的参考。

简要分析

热度分
13468
价值分
4551
活跃状态
活跃

语言占比

JavaScript
TypeScript

Release

README

Three Build Status

Community chat. Join us!

Discord

Table of content

Basic setup

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.

NPM
# Install npm version
$ npm install whs

NPM Version

http://abdaily.surge.sh/4/ http://abdaily.surge.sh/3/ http://abdaily.surge.sh/2/ http://abdaily.surge.sh/1/ http://theroguepixel.com/ http://supertiny.agency/ https://alexbuzin.me/ https://spatial.100shapes.com/ http://plateaux.space/

Features

  • 💎 Simple in usage
  • :rocket: Speeds up 3D scene prototyping
  • 🔌 Component based scene graph
  • 💣 Simple integration of any high performance physics even with Worker (Multithreading)
  • :dizzy: Automatization of rendering
  • 🆕 ES2015+ based
  • :large_blue_diamond: Extension system (modules)
  • :package: Webpack friendly
  • ✔️ Integrated Three.js rendering engine
  • :revolving_hearts: Work with whs.js and Three.js at the same time

External Modules

Name Status Description
whs-module-statsjs statsjs-npm WhitestormJS module for JavaScript Performance Monitor ⚡⌛
whs-module-dat.gui datgui-npm User Interface for runtime editing properties 🔑🛠🔩
physics-module-ammonext physics-ammonext-npm Physics module based on Ammo.js
whs-module-audio WIP Audio module for 3D positional sound 🔉
whs-vrkit physics-ammonext-npm Module for Virtual Reality

OpenCollective Backers OpenCollective Sponsors

Backers

Support us with a monthly donation and help us continue framework development🎉 and adding new features💡🎁.

评论

暂无评论