This commit is contained in:
@@ -47,7 +47,7 @@ function init() {
|
||||
|
||||
room.load(
|
||||
// url of file
|
||||
'../test2.gltf',
|
||||
'test2.gltf',
|
||||
// when resource is loaded
|
||||
function(gltf) {
|
||||
gltf.scene.position.y = -1;
|
||||
@@ -69,9 +69,9 @@ function init() {
|
||||
}
|
||||
);
|
||||
|
||||
image.load('../paw.png', (texture) => {
|
||||
image.load('paw.png', (texture) => {
|
||||
pawTexture = texture;
|
||||
image.load('../finger.png', (texture) => {
|
||||
image.load('finger.png', (texture) => {
|
||||
fingerTexture = texture;
|
||||
const material = new THREE.SpriteMaterial({ map: texture });
|
||||
currentSprite = new THREE.Sprite(material);
|
||||
|
||||
Reference in New Issue
Block a user