Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haxiomic/three-toolkit
My personal lib for three.js haxe projects
https://github.com/haxiomic/three-toolkit
Last synced: 29 days ago
JSON representation
My personal lib for three.js haxe projects
- Host: GitHub
- URL: https://github.com/haxiomic/three-toolkit
- Owner: haxiomic
- Created: 2020-08-07T12:08:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-17T21:08:30.000Z (over 2 years ago)
- Last Synced: 2024-10-16T16:30:31.131Z (3 months ago)
- Language: Haxe
- Size: 373 KB
- Stars: 14
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Three.js Toolkit
This is an assortment of classes I use when developing three.js haxe projects. Feel free to use them too, however, it's not designed to be a user-friendly library and code here is likely to change frequently. To use it, it's best to link to a specific commit to avoid troubles building in the future
Happy to accept PRs and issues!
## Requirements
- I use three.js r135 via dts2hx, other version may work
- Newer versions of three.js require `-D js-es=6` (however three.js and earlier r121 does not)To generate the required three.js types:
```
npm install [email protected] @types/[email protected] dts2hx
dts2hx three three/examples/jsm/loaders/RGBELoader three/examples/jsm/loaders/GLTFLoader three/examples/jsm/objects/Reflector -m
```Some types rely on [VectorMath](https://github.com/haxiomic/vector-math), install with `haxelib install vector-math`
See [haxiomic/haxe-threejs-template](https://github.com/haxiomic/haxe-threejs-template) for an example on usage