mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-22 11:44:10 +02:00
wip
This commit is contained in:
BIN
packages/frontend/assets/room/objects/cardboard-box/Box.png
Normal file
BIN
packages/frontend/assets/room/objects/cardboard-box/Box.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
@@ -89,11 +89,11 @@ const OBJECTS = {
|
|||||||
onInit: (room, o, obj) => {
|
onInit: (room, o, obj) => {
|
||||||
const boxMesh = obj.meshes[0].getChildMeshes().find(m => m.name === 'Box') as BABYLON.Mesh;
|
const boxMesh = obj.meshes[0].getChildMeshes().find(m => m.name === 'Box') as BABYLON.Mesh;
|
||||||
if (o.variation === 'mikan') {
|
if (o.variation === 'mikan') {
|
||||||
const tex = new BABYLON.Texture('/client-assets/room/objects/cardboard-box/mikan.png', room.scene, false, false);
|
const tex = new BABYLON.Texture('/client-assets/room/objects/cardboard-box/textures/mikan.png', room.scene, false, false);
|
||||||
(boxMesh.material as BABYLON.PBRMaterial).albedoTexture = tex;
|
(boxMesh.material as BABYLON.PBRMaterial).albedoTexture = tex;
|
||||||
(boxMesh.material as BABYLON.PBRMaterial).albedoColor = new BABYLON.Color3(1, 1, 1);
|
(boxMesh.material as BABYLON.PBRMaterial).albedoColor = new BABYLON.Color3(1, 1, 1);
|
||||||
} else if (o.variation === 'aizon') {
|
} else if (o.variation === 'aizon') {
|
||||||
const tex = new BABYLON.Texture('/client-assets/room/objects/cardboard-box/aizon.png', room.scene, false, false);
|
const tex = new BABYLON.Texture('/client-assets/room/objects/cardboard-box/textures/aizon.png', room.scene, false, false);
|
||||||
(boxMesh.material as BABYLON.PBRMaterial).albedoTexture = tex;
|
(boxMesh.material as BABYLON.PBRMaterial).albedoTexture = tex;
|
||||||
(boxMesh.material as BABYLON.PBRMaterial).albedoColor = new BABYLON.Color3(1, 1, 1);
|
(boxMesh.material as BABYLON.PBRMaterial).albedoColor = new BABYLON.Color3(1, 1, 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user