UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

13 lines (12 loc) 382 B
"use strict"; import { Mesh, PlaneGeometry } from "three"; import { createBlurMaterial } from "./BlurMaterial"; export function createBlurPlane() { const mat = createBlurMaterial(); const plane = new Mesh(new PlaneGeometry(1, 1), mat); plane.name = "Blurring Plane"; plane.frustumCulled = false; plane.renderOrder = 0; mat.depthWrite = false; return { plane, mat }; }