Skip to content

Commit

Permalink
Merge pull request #5 from bukil/Mukil_Current
Browse files Browse the repository at this point in the history
Update voxel-dog.js
  • Loading branch information
Prince-Afdob authored Nov 11, 2022
2 parents 824aa4a + b08bfdf commit 3845732
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions components/voxel-dog.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,24 @@ const VoxelDog = () => {
refRenderer.current = renderer
const scene = new THREE.Scene()

const target = new THREE.Vector3(-0.06, 1.0, 0.1)
const target = new THREE.Vector3(-0.06, 0.7, 0.1)
const initialCameraPosition = new THREE.Vector3(
20 * Math.sin(0.2 * Math.PI),
80,
10,
20 * Math.cos(0.2 * Math.PI)
80
)

// 640 -> 240
// 8 -> 6
const scale = (scH*0.0001) * 0.005 + 1.0
const camera = new THREE.PerspectiveCamera(
scale+20,
scale+2,
scale,
scale,
-scale,
0.9,
50000

)
camera.position.copy(initialCameraPosition)
camera.lookAt(target)
Expand Down
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const Home = () => (

<Section delay={0.1}>
<Heading as="h3" variant="section-title">
Work
INTRODUCTION
</Heading>
<Paragraph>
Mukil is a Dreamer and an engineering student at IET lucknow (2019-2023)
Expand Down

0 comments on commit 3845732

Please sign in to comment.