Skip to content

Commit

Permalink
Update GanyJS 0.6.0
Browse files Browse the repository at this point in the history
Signed-off-by: martinRenou <[email protected]>
  • Loading branch information
martinRenou committed Aug 31, 2020
1 parent 4ede0ea commit 8822589
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@jupyter-widgets/controls": "^2.0.0",
"backbone": "^1.4.0",
"binary-search-tree": "^0.2.6",
"ganyjs": "^0.5.0",
"ganyjs": "^0.6.0",
"three": "^0.118.0",
"uuid": "^3.3.3"
},
Expand Down
8 changes: 8 additions & 0 deletions src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +680,18 @@ class WaterModel extends EffectModel {
}

createBlock () {
// TODO Add texture to the package
const url = 'https://raw.githubusercontent.com/martinRenou/threejs-caustics/master/assets/TropicalSunnyDay_';

return new Water(this.parent.block, {
underWaterBlocks: this.underWaterBlocks,
causticsEnabled: this.causticsEnabled,
causticsFactor: this.causticsFactor,
skybox: new THREE.CubeTextureLoader().load([
url + 'px.jpg', url + 'nx.jpg',
url + 'py.jpg', url + 'ny.jpg',
url + 'pz.jpg', url + 'nz.jpg',
]),
});
}

Expand Down

0 comments on commit 8822589

Please sign in to comment.