Skip to content

Commit

Permalink
Add option to disable/enable useFourTap sampling for voxel-texture
Browse files Browse the repository at this point in the history
  • Loading branch information
deathcap committed Jan 12, 2014
1 parent b2e14bf commit f71ef9e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ Debug.prototype._render = function() {
self.game.showAllChunks()
});

this.useFourTap = true;
folder.add(this, 'useFourTap').onChange(function(value) {
self.game.materials.opts.useFourTap = value;
self.game.materials = self.game.materials.reconfigure();
self.game.showAllChunks()
});

this.texturePack = this.game.materials.texturePath.split('/')[1];
folder.add(this, 'texturePack').onFinishChange(function(value) {
self.game.materials.opts.texturePath = 'AssetPacks/' + value + '/textures/blocks/';
Expand Down

0 comments on commit f71ef9e

Please sign in to comment.