Skip to content

Commit

Permalink
Lower default near clip plane 10x, increase far 10x. Ref GH-3
Browse files Browse the repository at this point in the history
  • Loading branch information
deathcap committed May 27, 2014
1 parent cfd46cc commit de629a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aoshader.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function ShaderPlugin(game, opts) {
if (!this.camera) throw new Error('voxel-shader requires game-shell-fps-camera plugin'); // for camera view matrix

this.perspectiveResize = opts.perspectiveResize !== undefined ? opts.perspectiveResize : true;
this.cameraNear = opts.cameraNear !== undefined ? opts.cameraNear : 1.0;
this.cameraFar = opts.cameraFar !== undefined ? opts.cameraFar : 1000.0;
this.cameraNear = opts.cameraNear !== undefined ? opts.cameraNear : 0.1;
this.cameraFar = opts.cameraFar !== undefined ? opts.cameraFar : 100.0;
this.cameraFOV = opts.cameraFOV !== undefined ? opts.cameraFOV : 45.0;

this.projectionMatrix = mat4.create();
Expand Down

0 comments on commit de629a8

Please sign in to comment.