1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 15:15:45 +02:00

Update previewEngine.ts

This commit is contained in:
syuilo
2026-04-24 11:42:49 +09:00
parent 634bae3c49
commit 7ddcbf5e94

View File

@@ -88,6 +88,12 @@ export class RoomObjectPreviewEngine {
this.zGridPreviewPlane.material = gridMaterial;
this.zGridPreviewPlane.rotation = new BABYLON.Vector3(Math.PI / 2, 0, 0);
const gl = new BABYLON.GlowLayer('glow', this.scene, {
blurKernelSize: 64,
});
gl.intensity = 0.5;
this.scene.setRenderingAutoClearDepthStencil(gl.renderingGroupId, false);
if (_DEV_) {
window.takeScreenshot = () => {
const def = getObjectDef(this.objectType);