Skip to content

Commit d09e869

Browse files
committed
change rotationdirection because the image was looking flipped otherwise
1 parent 134a429 commit d09e869

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ dist-ssr
2424
*.sw?
2525
.pnpm-store/
2626
_*
27-
/layout*.js
27+
/layout*.js
28+
/assets
29+
test*

src/ThreeScene.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class ThreeScene {
126126
const delta = this.clock.getDelta()
127127
this.updateLightPosition();
128128
this.objHolder.rotateY(delta*this.rotationSpeed)
129-
this.objHolder.rotateX(delta*this.rotationSpeed)
129+
this.objHolder.rotateX(-delta*this.rotationSpeed)
130130
this.renderer.render( this.scene, this.camera );
131131
}
132132

0 commit comments

Comments
 (0)