UNPKG

@sauskylark/potree

Version:

WebGL point cloud viewer

27 lines (19 loc) 618 B
// see http://john-chapman-graphics.blogspot.co.at/2013/01/ssao-tutorial.html import * as THREE from "../../libs/three.js/build/three.module.js"; Potree.BlurMaterial = class BlurMaterial extends THREE.ShaderMaterial{ constructor(parameters = {}){ super(); let uniforms = { near: { type: 'f', value: 0 }, far: { type: 'f', value: 0 }, screenWidth: { type: 'f', value: 0 }, screenHeight: { type: 'f', value: 0 }, map: { type: 't', value: null } }; this.setValues({ uniforms: uniforms, vertexShader: Potree.Shaders['blur.vs'], fragmentShader: Potree.Shaders['blur.fs'] }); } };