Skip to content

Commit

Permalink
feat(CameraComponent): Increase default near clipping plane (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
jespertheend authored Dec 20, 2023
1 parent 63c2ffd commit cc64267
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/builtIn/CameraComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class CameraComponent extends Component {
type: "number",
guiOpts: {
min: 0,
defaultValue: 0.01,
defaultValue: 0.1,
},
},
clipFar: {
Expand Down Expand Up @@ -128,7 +128,7 @@ export class CameraComponent extends Component {
/** @private */
this._fov = 90;
/** @private */
this._clipNear = 0.01;
this._clipNear = 0.1;
/** @private */
this._clipFar = 1000;
/** @private */
Expand Down
2 changes: 1 addition & 1 deletion test/unit/src/gizmos/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export {Gizmo};

export function initBasicSetup() {
const cameraObject = new Entity();
cameraObject.pos.set(-2, 0.7, 2);
cameraObject.pos.set(-2, 0.7, 10);
cameraObject.rot.setFromAxisAngle(0.2, 0.7, -0.1);
const cam = cameraObject.addComponent(CameraComponent);

Expand Down

0 comments on commit cc64267

Please sign in to comment.