mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-22 05:45:32 +02:00
wip
This commit is contained in:
@@ -1612,9 +1612,9 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
||||
}
|
||||
|
||||
this.sr.disableSnapshotRendering();
|
||||
if (this.gl != null) {
|
||||
this.gl.isEnabled = false; // 重いので切る
|
||||
}
|
||||
//if (this.gl != null) {
|
||||
// this.gl.isEnabled = false; // 重いので切る
|
||||
//}
|
||||
|
||||
if (this.gridPlane.material == null) {
|
||||
import('@babylonjs/materials').then(m => {
|
||||
@@ -1639,9 +1639,9 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
||||
await this.bake();
|
||||
|
||||
this.sr.enableSnapshotRendering();
|
||||
if (this.gl != null) {
|
||||
this.gl.isEnabled = true;
|
||||
}
|
||||
//if (this.gl != null) {
|
||||
// this.gl.isEnabled = true;
|
||||
//}
|
||||
}
|
||||
|
||||
public async bake() {
|
||||
|
||||
@@ -27,7 +27,7 @@ export const electronicDisplayBoard = defineObject({
|
||||
},
|
||||
default: {
|
||||
text: 'Hello, Misskey!',
|
||||
frameColor: [0.2, 0.2, 0.2],
|
||||
frameColor: [0.05, 0.05, 0.05],
|
||||
ledColor: [1, 1, 1],
|
||||
},
|
||||
},
|
||||
@@ -44,6 +44,7 @@ export const electronicDisplayBoard = defineObject({
|
||||
const texLoading = Promise.withResolvers<void>();
|
||||
|
||||
const tex = new BABYLON.Texture('/client-assets/room/textures/dot-matrix-chars.png', scene, false, false, undefined, () => {
|
||||
tex.level = 2;
|
||||
textMaterial.emissiveTexture = tex;
|
||||
textMaterial.albedoTexture = tex;
|
||||
textMaterial.disableLighting = true;
|
||||
@@ -68,6 +69,7 @@ export const electronicDisplayBoard = defineObject({
|
||||
const textManager = new RecyvlingTextGrid(displayMesh, maxChars, {
|
||||
meshFlipped: true,
|
||||
material: textMaterial,
|
||||
charUScale: 1.15,
|
||||
});
|
||||
|
||||
model.bakeExcludeMeshes = [displayMesh];
|
||||
|
||||
Reference in New Issue
Block a user