## Changelog

##### Before contibuting here see [rules](https://github.com/WhitestormJS/whitestorm.js/blob/master/CONTRIBUTING.md#-adding-changes-to-changelogmd)

**r11**
- *Bug fixes*
   - 
- `DOFConstraint` added.
- Loop
   - Added shorthand for `.addLoop()` and `.removeLoop()`
- List
   - Added `.get()` method.
- World
   - `.addLoop()` and `.removeLoop()` now return Promises.
   - Added proper `.remove()` function.
- CoreObject
   - `Object` renamed to `CoreObject`
   - Added proper `.remove()` function.
- Lights
   - Fixed `target` option. Now works with Object3D and Vector3(both).
- STRUCTURE
   - Added modularity
   - Optimized for webpack usage.
   - Webpack build transformed to UMD.
   - `src` now consist of `examples` and `framework`
   - Fixed `_assets` folder.
   - Removed unused `_lib/` folder
   - Removed `_temp` folder.
- OPTIMIZATION
    - Removed unused dependencies in package.json
- EXAMPLES
   - Fixed `performance/softbodies` example.
   - Added `basic/cloth` example.
   - Added `basic/cloth2` example.
   - Added `basic/cloth3` example.
- TESTS.
   - Added unit tests:
   - `core/`
   - `meshes/`
   - `cameras/`
   - `utils/`
   - `extras/`
   - `lights/`
   - Fixed Travis CI.
- Three.js version updated to r80.


----

### Changlog refactored.

----

**r10**
- Added variations (light version + regular version).
- `WHS.Curve` - wraps three.js curves functionality.
- Rewritten core:
   - Switched to *webpack + gulp* structure.
   - PhysiJS split to make it modular.
   - Testing system.
   - Benchmark.
- Improved PhysiJS
   - Modular feature + tree-shaking.
   - Performance Improvement: Typed Arrays. (ConcaveMesh, ConvexMesh, HighfieldMesh)
   - Performance Improvement: Variable caching.
   - Performance Improvement: Block-scoped variables.
   - Performance Improvement: Strict equals.
   - Fixed code style.
   - Added SoftBody feature. (SoftMesh)
   - ES6 style.
- `retreive()` removed. (no scence)
- `Fog` and `FogExp` moved to `WHS.World` class as scene configuration.
- [Plugin workflow](https://github.com/WhitestormJS/whs-plugin.js) repository created.
- SoftBody fixed
- Playground added

**r9-alpha**
- #75: Helpers
   - PointLight and SpotLight helpers.
   - Box and Bounding box helpers. 
   - DirectionalLight helper.
   - HemisphereLight, edge and faceNormals helper.
   - axis, grid and vertexNormals helper.
- Shape exmaples moved to *examples/shapes/*
- Added debug & physics example.
- #81: Added WHS.Object as a base of WHS.Shape, WHS.Light and WHS.World.
   - *src/Core.js -> src/Core/World.js*
   - *src/API/Shape.js -> src/Core/Shape.js*
   - *src/API/Light.js -> src/Core/Light.js*
- *libs/three.js r75 -> libs/three.js r76*
- Fixed autoresize.
- *WHS.Object: build() -> wrap()*
- Added polyfill to WHS.Camera.
- `setPosition` and `setRotation` added to `WHS.Camera` and `WHS.Light`.
- `follow()` function for `WHS.Camera`.
- *WHS.Shape: .mesh -> getNative()*
- `setPosition` and `setRotation` -> `position.set` and `rotation.set`
- `path_worker`, `path_ammo` -> `paths.worker` & `paths.ammo` 
- remove `Fog` and `FogExp` classes.

**r8**
- Engine rebuild commit:
   - Functions (prototype) replaced with es6 classes
   - *api.construct -> WHS.Shape*
   - *api.Wrap -> WHS.Shape.addTo*
   - *WHS.plugins.loop -> WHS.loop*
   - Plugin system with `WHS.Shape.prototype.pluginName`
   - Skybox: *src -> path*
- Fixed speed bug when press *shift* on fps example.
- Removed unused files.
- #51: Update `Core.js`
   - _initStats()
   - _initDOM()
   - _initCamera()
   - _initRenderer()
   - *whselement var -> this._dom*
   - _loop in start()
   - _updateControls() in start()
   - _process in start()
   - *this.update -> this._update*
   - _initScene()
- #53: Wagner moved to plugins.
- Fixed resize. *rWidth, rHeight default parameter is now 1.*
- #52: *libs/three.js r73 -> libs/three.js r74*
- Terrain moved to plugins.
- Cleanup folders.
- Loaders fix.
- Fix for Model & Morph: *useVertexColors*, *useCustomMaterial*.
- Fix for terrain shadows. (Now it can receive).
- Fix for zero values in friction and restitution.
- *MakeFirstPerson -> FPSControls*
- #61: *libs/three.js r74 -> libs/three.js r75*
- Fixed Text shape.
- *WHS.init class -> WHS.World class*
- #63: Fixed JSDoc.
- #60: Update lights for Three.js r75
- *src/Skybox/Skybox.js -> src/Components/Skybox.js*
- #5: Add fog.
- Added `fps_fog.html` example.
- `WHS.Shape` and `WHS.Light` core rebuild.
- `onlyvis` is removed. (use: `mass: 0`).
- CORE REBUILD. Remade with es6 promises.
- Removed `modellingQueue`.
- Fixed `remove` and `retrieve` functions.
- *src/Light -> src/Lights*
- Added `physics` parameter to `WHS.Model`.
- Added `clone()` function to `WHS.Shape` and `WHS.Light`.
- *WHS.Cube -> WHS.Box*
- Removed `stone_wall.html` example.
 
**r7**
- Fixed #16 "object.assign() chrome bug."
- Base rewrite(fix). part 4
- Added the following effects to `addWagner`:
  - `grayscalePass`
  - `halftonePass`
  - `invertPass`
- *logos/ -> development/art/logo/*
- *development/art/logo/* + sorted = */ai, /animation_fla, /animation_gif*
- *development/coggle/ -> development/art/coggle/*
- *development/ -> development/screenshots/*
- Added warning in case of invalid Wagner effect referenced (addWagner.js)
- *src/libs/{jquery} - > ./libs/{jquery}*
- Fixed `onlyvis`.
- Added Plugin support (`src/Plugins/`).
- New example (`examples/plugin_example.html`).
- Added skybox support (`WHS.init.prototype.addSkybox`).
- New example (`examples/skybox.html`).
- Added `whs.preloader` plugin.
- Skybox added to fps example.
- ** CannonJS changed to PhysiJS(ammo.js version) **
- Removed example (`examples/basic_object.html`).
- `GAME.start()` added.
- CSF. ShaderTerrain.js
- Edit skybox example to prevent dodecahedron from rolling off of the ground
- CSF. `skybox.html`
- CSF. `addSkybox.js`
- CSF. `prefix.js`
- CSF. `addObject.js`
- CSF. `API/*.js`
- CSF. `FPSControls.js`
- Fixed OrbitControls parameter.
- Fixed parrot scale in fps example.
- CSF. `addMorph.js`
- CSF. `addModel.js`
- *scope.visible -> scope.mesh*
- *scope.body -> x*
- CSF. `addGround.js`
- CSF. `game.js`
- CSF. `addMorph.js`
- CSF. `loop.js`
- CSF. `register.js`
- CSF. `watch.js`
- Jquery is replaced with DOM in engine.
- CSF. `addWagner.js`
- *prefix.js (polyfill part) -> polyfill.js*
- CSF. `addLight.js`
- Removed `api.def()`.
- CSF. `whitestorm.js`
- Jquery removed from engine.
- Add warning in case of PointerLock API incompatibility.

**r6**
- Made `WHS.API.construct.build` parameters optional.
- Fixed [basic model example](http://192.241.128.187/current/examples/basic_model.html).
- Added *api.loadMaterial* function.
- Added *api.construct* function.
- Fixed *lathe* physics error.
- Changed coggle.
- Gulpfile update.
- Fixed `addLight()`.
- Added `_state` property to scope which is `deferred.promise()`.
- Disabled defining `this.composer.eff` in `WHS.init` unless Wagner is enabled.
- Fixed autoresize.
- Added the following effects to `addWagner`:
  - `ASCIIPass`
  - `dotScreenPass`
  - `fxaaPass`
  - `chromaticAberrationPass`
  - `dirtPass`
  - `edgeDetectionPass`
  - `highPassPass`
- Removed unusable libs.

**r6-alpha**
- Added Coggle.
- *WHS.init(THREE, CANNON, params) -> WHS.init(params)*
- Fixed *api.Wrap* error in *addGround*.
- Added *api.Wrap* to *addGrass*.
- Fixed name in examples.
- Fixed *stone_wall.html* example.
- MaterialOptions: *.type -> .kind*
- **THREE.js updade. r69 -> r73**.
- Changed terrain generation script.

-- Improved loading time ( < 1 sec. ).

-- FPS improved. (59-60 fps.)

Issues:

-- Shadows don't work.

-- addGrass doesn't work.

-- Cannon.js heightmap is not smooth yet.

**r5**
- Basic_material example fixed.
- `addModel()` for adding an object from JSON file.
- basic_material *example*
- *THREE.JSONLoader -> API*
- Added Wrap function.
- Removed all console.log's.
- *src/libs/Wagner.base.js -> libs/Wagner.base.js*
- CSF. Line-wrap, blocks.

**r4**
- Shader terrain material added.
- Shadows fixed.
- Lambert material issue fixed.
- *index.html -> examples/fps.html*.
- autoresize for *basic_object* example fixed.
- Source tree restructured. (All code now in *src* folder)
- *build* folder consist of *whitestorm.js*(original) and *whitestorm.min.js*(minified).
- *textures -> assets/textures, terrain -> assets/terrain*
- Three.js and cannon.js moved to *libs*.

**v0.0.3**
- Ground fixed.
- Grass added(+-)
- `PackUvs()` for add UVs for custom geometry.
- Improved FPS rate. (from 40 fps to 50-60 fps).

**v0.0.2**
- Terrain performance fixed. (from 20 fps to 40 fps //collisions//)
- License fixed.
- Funcs added ( **API** ).
- Examples added.

**v0.0.1**
- AddObject function
- Terrain added.
- Basic API
