Skip to content

Commit

Permalink
Enable logdepthbuf in snapping examples
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Sep 13, 2023
1 parent fd3a89a commit 0bb6986
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 7 deletions.
1 change: 1 addition & 0 deletions examples/scenemodel/snapToEdge_dtx_batching_triangles.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ <h3>Components Used</h3>
const viewer = new Viewer({
canvasId: "myCanvas",
transparent: true,
logarithmicDepthBufferEnabled: true, // Better precision for snapping
dtxEnabled: true // Enable data texture model representation
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ <h1>SceneModel</h1>
const viewer = new Viewer({
canvasId: "myCanvas",
transparent: true,
logarithmicDepthBufferEnabled: true, // Better precision for snapping
dtxEnabled: true // Enable data texture model representation
});

Expand Down
3 changes: 2 additions & 1 deletion examples/scenemodel/snapToEdge_vbo_batching_triangles.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ <h1>SceneModel</h1>

const viewer = new Viewer({
canvasId: "myCanvas",
transparent: true
transparent: true,
logarithmicDepthBufferEnabled: true // Better precision for snapping
});

viewer.scene.camera.eye = [-21.80, 4.01, 6.56];
Expand Down
3 changes: 2 additions & 1 deletion examples/scenemodel/snapToEdge_vbo_instancing_triangles.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ <h1>SceneModel</h1>

const viewer = new Viewer({
canvasId: "myCanvas",
transparent: true
transparent: true,
logarithmicDepthBufferEnabled: true // Better precision for snapping
});

viewer.scene.camera.eye = [-21.80, 4.01, 6.56];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ <h3>Components Used</h3>
const viewer = new Viewer({
canvasId: "myCanvas",
transparent: true,
logarithmicDepthBufferEnabled: true, // Better precision for snapping
dtxEnabled: true // Enable data texture model representation
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ <h1>SceneModel</h1>
const viewer = new Viewer({
canvasId: "myCanvas",
transparent: true,
logarithmicDepthBufferEnabled: true, // Better precision for snapping
dtxEnabled: true // Enable data texture model representation
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ <h3>Components Used</h3>

const viewer = new Viewer({
canvasId: "myCanvas",
transparent: true
transparent: true,
logarithmicDepthBufferEnabled: true // Better precision for snapping
});

viewer.scene.camera.eye = [-21.80, 4.01, 6.56];
Expand Down
3 changes: 2 additions & 1 deletion examples/scenemodel/snapToVertex_vbo_batching_triangles.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ <h1>SceneModel</h1>

const viewer = new Viewer({
canvasId: "myCanvas",
transparent: true
transparent: true,
logarithmicDepthBufferEnabled: true // Better precision for snapping
});

viewer.scene.camera.eye = [-21.80, 4.01, 6.56];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ <h1>SceneModel</h1>

const viewer = new Viewer({
canvasId: "myCanvas",
transparent: true
transparent: true,
logarithmicDepthBufferEnabled: true // Better precision for snapping
});

viewer.scene.camera.eye = [-21.80, 4.01, 6.56];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ <h3>Components Used</h3>

const viewer = new Viewer({
canvasId: "myCanvas",
transparent: true
transparent: true,
logarithmicDepthBufferEnabled: true // Better precision for snapping
});

viewer.scene.camera.eye = [-21.80, 4.01, 6.56];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ <h1>SceneModel</h1>

const viewer = new Viewer({
canvasId: "myCanvas",
transparent: true
transparent: true,
logarithmicDepthBufferEnabled: true // Better precision for snapping
});

viewer.scene.camera.eye = [-21.80, 4.01, 6.56];
Expand Down

0 comments on commit 0bb6986

Please sign in to comment.