Skip to content

Commit

Permalink
Example tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Oct 17, 2023
1 parent 4da3b79 commit 0239d3f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ <h3>Resources</h3>
colorTextureEnabled: true
});

viewer.scene.gammaInput = true;
viewer.scene.gammaOutput = true;
viewer.scene.gammaFactor = 4.4;

viewer.camera.eye = [-3.351107502463288, 3.9321259279903114, 4.030067755126885];
viewer.camera.look = [-0.687950493700225, 0.9435747389607769, 0.21646512460703526];
viewer.camera.up = [0.309485261773766, 0.8413154758004762, -0.4431784549404927];
Expand All @@ -96,18 +100,14 @@ <h3>Resources</h3>

const sceneModel = gltfLoader.load({
id: "myModel",
src: "../../assets/models/gltf/skatepark/scene.gltf",
src: "../../assets/models/gltf/SkatePark/glTF-Binary/SkatePark.glb",
colorTextureEnabled: true
});

sceneModel.on("loaded", () => {
viewer.cameraFlight.jumpTo(sceneModel);
});

//------------------------------------------------------------------------------------------------------------------
// Use the AnnotationsPlugin to create an annotation wherever we click on an object
//------------------------------------------------------------------------------------------------------------------

var i = 1;

viewer.scene.input.on("mouseclicked", (coords) => {
Expand Down

0 comments on commit 0239d3f

Please sign in to comment.