Skip to content

Commit

Permalink
forward antialias option to voxel-view
Browse files Browse the repository at this point in the history
  • Loading branch information
wintermutt committed Mar 11, 2014
1 parent cac9fe1 commit c1fb5f2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function Game(opts) {
this.removeDistance = opts.removeDistance || this.chunkDistance + 1

this.skyColor = opts.skyColor || 0xBFD1E5
this.antialias = opts.antialias
this.playerHeight = opts.playerHeight || 1.62
this.meshType = opts.meshType || 'surfaceMesh'
this.mesher = opts.mesher || voxel.meshers.culled
Expand All @@ -60,7 +61,12 @@ function Game(opts) {
this.items = []
this.voxels = voxel(this)
this.scene = new THREE.Scene()
this.view = opts.view || new voxelView(THREE, { width: this.width, height: this.height, skyColor: this.skyColor })
this.view = opts.view || new voxelView(THREE, {
width: this.width,
height: this.height,
skyColor: this.skyColor,
antialias: this.antialias
})
this.view.bindToScene(this.scene)
this.camera = this.view.getCamera()
if (!opts.lightsDisabled) this.addLights(this.scene)
Expand Down

0 comments on commit c1fb5f2

Please sign in to comment.