How to use the BokehShader function from three

Find comprehensive JavaScript three.BokehShader code examples handpicked from public code repositorys.

1690
1691
1692
1693
1694
1695
1696
1697
1698
1699

	console.error( 'THREE.BokehPass relies on THREE.BokehShader' );

}

const bokehShader = THREE.BokehShader;
const bokehUniforms = THREE.UniformsUtils.clone( bokehShader.uniforms );
bokehUniforms[ 'tDepth' ].value = this.renderTargetDepth.texture;
bokehUniforms[ 'focus' ].value = focus;
bokehUniforms[ 'aspect' ].value = aspect;
fork icon3
star icon7
watch icon1

+ 17 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)