Skip to content

Commit abb4c96

Browse files
fix: three >r155 changed light settings
1 parent 4aeddb5 commit abb4c96

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@angular/platform-browser-dynamic": "^17.0.7",
3131
"@angular/router": "^17.0.7",
3232
"rxjs": "^7.8.1",
33-
"three": "0.154.0",
33+
"three": "^0.159.0",
3434
"tslib": "^2.6.2",
3535
"zone.js": "^0.14.2"
3636
},

projects/angular-stl-model-viewer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@angular/common": "^17.0.0",
1818
"@angular/core": "^17.0.0",
1919
"rxjs": "^7.8.0",
20-
"three": "^0.125.0",
20+
"three": "^0.155.0",
2121
"zone.js": "~0.14.0"
2222
},
2323
"dependencies": {

projects/angular-stl-model-viewer/src/lib/angular-stl-model-viewer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class StlModelViewerComponent implements OnInit, OnDestroy {
7474
15
7575
)
7676
@Input() cameraTarget: THREE.Vector3 = new THREE.Vector3(0, 0, 0)
77-
@Input() light: THREE.Light = new THREE.PointLight(0xffffff)
77+
@Input() light: THREE.Light = new THREE.PointLight(0xffffff, 80)
7878
@Input() material: THREE.Material = new THREE.MeshPhongMaterial({
7979
color: 0x999999,
8080
shininess: 400,

projects/examples/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class AppComponent {
1515
camera = new THREE.PerspectiveCamera(35, window.innerWidth / window.innerHeight, 1, 15)
1616
controls = new OrbitControls(this.camera, this.renderer.domElement)
1717
scene = new THREE.Scene()
18-
light = new THREE.PointLight(0xffffff)
18+
light = new THREE.PointLight(0xffffff, 80)
1919

2020
constructor() {
2121
this.renderer.setPixelRatio(window.devicePixelRatio)

0 commit comments

Comments
 (0)