preversion
- Hook to run command before npm version is increased. In this case, the tests are run and a failure will halt further script execution.
version
- Hook after version is incremented. We build the project and add the dist folder to git.
postversion
- Hook after version script is finished executing. We push the changes to our repository.
npm test
- Runs all jasmine tests.
npm run build
- Builds the project.
npm precommit
- Increments the patch version. Used during development.
npm build-prod-minor
- Increments the minor version. Used for minor production deploys. No breaking changes.
npm build-prod-major
- Increments the major version. Used for major production deploys. May contain breaking changes.
The objects represented in this folder are wrappers of three.js structures. This allows me to use their functionality while keeping some form of abstraction.
-
row major
m.set( 11, 12, 13,
21, 22, 23,
31, 32, 33 );
will result in the elements array containing: -
col major (internal)
m.el = [ 11, 21, 31,
12, 22, 32,
13, 23, 33 ];
All calculations are performed using column-major ordering.
This folder contains everything surrounding the rendering engine such as shaders and the canvas hook.
shader-program.ts
- contains bootstraping code to link, compile, and build shader programs.
shader-types.ts
- contains the Enums of the default shader types.
fragment-shader.ts
- contains definitions for the different default fragment (pixel) shaders.
vertex-shader.ts
- contains definitions for the different default vertex shaders.
renderer-engine.ts
- contains the hook into the HTML5 Canvas element and subsequently the WebGL hook.
Contains the grid 2d and A* pathfinding algorithm.