mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-23 05:14:13 +02:00
Update previewEngine.ts
This commit is contained in:
@@ -88,6 +88,12 @@ export class RoomObjectPreviewEngine {
|
|||||||
this.zGridPreviewPlane.material = gridMaterial;
|
this.zGridPreviewPlane.material = gridMaterial;
|
||||||
this.zGridPreviewPlane.rotation = new BABYLON.Vector3(Math.PI / 2, 0, 0);
|
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_) {
|
if (_DEV_) {
|
||||||
window.takeScreenshot = () => {
|
window.takeScreenshot = () => {
|
||||||
const def = getObjectDef(this.objectType);
|
const def = getObjectDef(this.objectType);
|
||||||
|
|||||||
Reference in New Issue
Block a user