UNPKG

@polygonjs/polygonjs

Version:

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

14 lines (11 loc) 357 B
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}; }