mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-24 16:14:11 +02:00
wip
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -80,8 +80,8 @@ export class WorldEngine extends EventEmitter<WorldEngineEvents> {
|
|||||||
skybox.material = skyboxMat;
|
skybox.material = skyboxMat;
|
||||||
skybox.infiniteDistance = true;
|
skybox.infiniteDistance = true;
|
||||||
|
|
||||||
//this.time = TIME_MAP[new Date().getHours() as keyof typeof TIME_MAP];
|
this.time = TIME_MAP[new Date().getHours() as keyof typeof TIME_MAP];
|
||||||
this.time = TIME_MAP[12 as keyof typeof TIME_MAP];
|
//this.time = TIME_MAP[12 as keyof typeof TIME_MAP];
|
||||||
|
|
||||||
if (this.time === 0) {
|
if (this.time === 0) {
|
||||||
skyboxMat.emissiveColor = new BABYLON.Color3(1, 1, 1);
|
skyboxMat.emissiveColor = new BABYLON.Color3(1, 1, 1);
|
||||||
@@ -233,17 +233,31 @@ export class WorldEngine extends EventEmitter<WorldEngineEvents> {
|
|||||||
this.textMaterial.freeze();
|
this.textMaterial.freeze();
|
||||||
|
|
||||||
{
|
{
|
||||||
const messageRing = envObj.meshes.find(m => m.name.includes('__LED_RING__'));
|
const objet = envObj.meshes.find(m => m.name.includes('__OBJET__'));
|
||||||
messageRing.rotation = messageRing.rotationQuaternion.toEulerAngles();
|
objet.rotation = objet.rotationQuaternion.toEulerAngles();
|
||||||
messageRing.rotationQuaternion = null;
|
objet.rotationQuaternion = null;
|
||||||
|
|
||||||
const anim = new BABYLON.Animation('', 'rotation.y', 60, BABYLON.Animation.ANIMATIONTYPE_FLOAT, BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE);
|
const anim = new BABYLON.Animation('', 'rotation.y', 60, BABYLON.Animation.ANIMATIONTYPE_FLOAT, BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE);
|
||||||
anim.setKeys([
|
anim.setKeys([
|
||||||
{ frame: 0, value: 0 },
|
{ frame: 0, value: 0 },
|
||||||
{ frame: 5000, value: -(Math.PI * 2) },
|
{ frame: 5000, value: -(Math.PI * 2) },
|
||||||
]);
|
]);
|
||||||
messageRing.animations = [anim];
|
objet.animations = [anim];
|
||||||
this.scene.beginAnimation(messageRing, 0, 5000, true);
|
this.scene.beginAnimation(objet, 0, 5000, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
const ring = envObj.meshes.find(m => m.name.includes('__LED_RING__'));
|
||||||
|
ring.rotation = ring.rotationQuaternion.toEulerAngles();
|
||||||
|
ring.rotationQuaternion = null;
|
||||||
|
|
||||||
|
const anim = new BABYLON.Animation('', 'rotation.y', 60, BABYLON.Animation.ANIMATIONTYPE_FLOAT, BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE);
|
||||||
|
anim.setKeys([
|
||||||
|
{ frame: 0, value: 0 },
|
||||||
|
{ frame: 5000, value: -(Math.PI * 2) },
|
||||||
|
]);
|
||||||
|
ring.animations = [anim];
|
||||||
|
this.scene.beginAnimation(ring, 0, 5000, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user