Skip to content

Commit 222dda3

Browse files
PANSTER.DanielPANSTER.Daniel
PANSTER.Daniel
authored and
PANSTER.Daniel
committed
change src tag and path (test)
1 parent 778113d commit 222dda3

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/app/cube-threejs/src/threejsCubeWorld.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class World {
168168
let geometry = new THREE.BoxGeometry(this.size, this.size, this.size);
169169
//let geometry = new THREE.IcosahedronGeometry(1, 1);
170170

171-
this._texture_brick = new THREE.TextureLoader().load( "./../../assets/texture/brick_stone_wall_0078_01.jpg" );
171+
this._texture_brick = new THREE.TextureLoader().load( "/assets/texture/Bricks.jpg" );
172172
this._texture_brick.minFilter = THREE.LinearFilter;
173173
// check to set texture or pure color
174174
var matProps:any = {};

src/app/home/home.component.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@ <h1>
1919
<ul>
2020
<li>Cube - Three.js</li>
2121
<a routerLink="cube-threejs">
22-
<img src="/assets/screens/cube_threejs.jpg" alt="" height="150" width="150">
22+
<!-- possible property binding
23+
<img src="{{imgURL}}">
24+
<img [src]="imgURL">
25+
-->
26+
<img [src]="imgURL_cube_threejs" alt="" height="150" width="150">
2327
</a>
2428
<li>CSS3D - Three.js</li>
2529
<a routerLink="css3d-threejs">
26-
<img src="/assets/screens/css3d_threejs.jpg" alt="" height="150" width="150">
30+
<img [src]="imgURL_css3d_threejs" alt="" height="150" width="150">
2731
</a>
2832
</ul>
2933
</div>

src/app/home/home.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { Component, OnInit } from '@angular/core';
77
})
88
export class HomeComponent implements OnInit {
99

10+
public imgURL_cube_threejs = "/assets/screens/cube_threejs.jpg";
11+
public imgURL_css3d_threejs = "/assets/screens/css3d_threejs.jpg";
1012
constructor() { }
1113

1214
ngOnInit() {

0 commit comments

Comments
 (0)