mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-29 16:34:35 +02:00
wip
This commit is contained in:
@@ -21,6 +21,7 @@ export class LobbyEnvManager extends WorldEnvManager {
|
||||
public envMapIndoor: BABYLON.CubeTexture | null = null;
|
||||
public maxCameraZ = cm(100000);
|
||||
private textMaterial: BABYLON.StandardMaterial | null = null;
|
||||
private textBwMaterial: BABYLON.StandardMaterial | null = null;
|
||||
private translucentTextMaterial: BABYLON.StandardMaterial | null = null;
|
||||
private timer: Timer = new Timer();
|
||||
|
||||
@@ -71,13 +72,18 @@ export class LobbyEnvManager extends WorldEnvManager {
|
||||
}
|
||||
|
||||
this.textMaterial = new BABYLON.StandardMaterial('textMaterial', this.engine.scene);
|
||||
this.textMaterial.diffuseTexture = new BABYLON.Texture('/client-assets/world/chars.png', this.engine.scene, false, false);
|
||||
this.textMaterial.diffuseTexture = new BABYLON.Texture('/client-assets/world/envs/lobby/chars-black.png', this.engine.scene, false, false);
|
||||
this.textMaterial.diffuseTexture.hasAlpha = true;
|
||||
this.textMaterial.disableLighting = true;
|
||||
this.textMaterial.transparencyMode = BABYLON.Material.MATERIAL_ALPHABLEND;
|
||||
this.textMaterial.useAlphaFromDiffuseTexture = true;
|
||||
this.textMaterial.freeze();
|
||||
|
||||
this.textBwMaterial = new BABYLON.StandardMaterial('textBwMaterial', this.engine.scene);
|
||||
this.textBwMaterial.emissiveTexture = new BABYLON.Texture('/client-assets/world/envs/lobby/chars-bw.png', this.engine.scene, false, false);
|
||||
this.textBwMaterial.disableLighting = true;
|
||||
this.textBwMaterial.freeze();
|
||||
|
||||
this.translucentTextMaterial = this.textMaterial.clone('translucentTextMaterial');
|
||||
this.translucentTextMaterial.alpha = 0.25;
|
||||
|
||||
@@ -125,7 +131,7 @@ export class LobbyEnvManager extends WorldEnvManager {
|
||||
messageRing.rotationQuaternion = null;
|
||||
const text = new RecyvlingTextGrid(messageRing, 256, {
|
||||
meshFlipped: true,
|
||||
material: this.textMaterial,
|
||||
material: this.textBwMaterial,
|
||||
});
|
||||
|
||||
text.write('Wellcome to Misskey World!');
|
||||
|
||||
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
BIN
packages/frontend/assets/world/envs/lobby/chars-bw.png
Normal file
BIN
packages/frontend/assets/world/envs/lobby/chars-bw.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 75 KiB |
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user