How to use the UnrealBloomPass function from three
Find comprehensive JavaScript three.UnrealBloomPass code examples handpicked from public code repositorys.
GitHub: zya/apophenia
![zya profile picture](/zya.png?size=40)
70 71 72 73 74 75 76 77 78 79
var fxaa = new THREE.ShaderPass(THREE.FXAAShader); fxaa.uniforms.resolution.value.set(1 / (window.innerWidth * dpr), 1 / (window.innerHeight * dpr)); composer.addPass(fxaa); var bloomPass = new THREE.UnrealBloomPass(new THREE.Vector2(window.innerWidth, window.innerHeight), 1.9, 0.7, 0.5); composer.addPass(bloomPass); var screen = new THREE.ScreenNode(); var saturation = new THREE.FloatNode(1.0);
+ 9 other calls in file
77 78 79 80 81 82 83 84 85 86
camera.rotation.y = 1; const renderPass = new THREE.RenderPass(scene, camera); const bloomPass = new THREE.UnrealBloomPass( new THREE.Vector2(width, height), options.bloomStrength, options.bloomRadius, options.bloomThreshold
+ 2 other calls in file
three.Vector3 is the most popular function in three (22341 examples)