How to use the DepthLimitedBlurShader function from three
Find comprehensive JavaScript three.DepthLimitedBlurShader code examples handpicked from public code repositorys.
785 786 787 788 789 790 791 792 793 794
} this.vBlurMaterial = new THREE.ShaderMaterial( { uniforms: THREE.UniformsUtils.clone( THREE.DepthLimitedBlurShader.uniforms ), defines: Object.assign( {}, THREE.DepthLimitedBlurShader.defines ), vertexShader: THREE.DepthLimitedBlurShader.vertexShader, fragmentShader: THREE.DepthLimitedBlurShader.fragmentShader } ); this.vBlurMaterial.defines[ 'DEPTH_PACKING' ] = this.supportsDepthTextureExtension ? 0 : 1; this.vBlurMaterial.defines[ 'PERSPECTIVE_CAMERA' ] = this.camera.isPerspectiveCamera ? 1 : 0;
3
7
1
+ 107 other calls in file
three.Vector3 is the most popular function in three (22341 examples)