tubugl-helper
v1.2.0
Published
helper for tubugl
Downloads
4
Readme
tubugl-helper
helper tool for tubugl
install
To install it with npm:
npm install tubugl-helper
To install it with yarn:
yarn add tubugl-helper
usage
Grid Helper
import { GridHelper } from 'tubugl-helper';
// ----------------
// ----------------
let gridHelper = new GridHelper(gl, 1000, 1000, 20, 20);
// ----------------
// ----------------
gridHelper.render(camera);
Normal Helper
import { NormalHelper } from 'tubugl-helper';
// ----------------
// ----------------
let normalHelper = new NormalHelper(gl, roundingCube);
// ----------------
// ----------------
normalHelper.render(camera);
examples
https://kenjispecial.github.io/tubugl-helper/
example with grid helper
https://kenjispecial.github.io/tubugl-helper/app00/index.html
example with normal helper
https://kenjispecial.github.io/tubugl-helper/app01/index.html
Running the examples locally
you need to install parcel to run examples locally
install node modules locally
yarn
yarn run