Skip to content

Commit

Permalink
change camera location
Browse files Browse the repository at this point in the history
  • Loading branch information
InventivetalentDev committed Dec 5, 2023
1 parent cc0e4bc commit ec9fdb2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { Renderer, SceneInspector, SkinObject, Skins, OrbitControls } from "minerender";
import { Intersection, Vector3 } from "three";
import {Renderer, SceneInspector, SkinObject, Skins, OrbitControls} from "minerender";
import {Intersection, Vector3} from "three";

console.log("hi");

const renderer = new Renderer({
camera: {
near: 1,
far: 2000,
position: [50, 35, 50]
position: [-50, 40, -50],
lookingAt: [0, 10, 0]
},
render: {
stats: true,
Expand All @@ -19,7 +20,7 @@ const renderer = new Renderer({
enabled: false
},
debug: {
grid: true,
grid: false,
axes: true
}
});
Expand Down Expand Up @@ -72,6 +73,7 @@ skinInput.addEventListener("change", () => {


const controls = new OrbitControls(renderer.camera, renderer.renderer.domElement);
controls.target.setY(10);
renderer.registerEventDispatcher(controls);
controls.update();

Expand Down

0 comments on commit ec9fdb2

Please sign in to comment.