|
@@ -74,19 +74,22 @@
|
|
|
|
|
|
|
|
// post processing
|
|
// post processing
|
|
|
|
|
|
|
|
|
|
+ const postProcessing = new THREE.PostProcessing( renderer );
|
|
|
|
|
+ postProcessing.outputColorTransform = false;
|
|
|
|
|
+
|
|
|
const scenePass = pass( scene, camera );
|
|
const scenePass = pass( scene, camera );
|
|
|
|
|
+
|
|
|
scenePass.setMRT( mrt( {
|
|
scenePass.setMRT( mrt( {
|
|
|
output,
|
|
output,
|
|
|
bloomIntensity: float( 0 ) // default bloom intensity
|
|
bloomIntensity: float( 0 ) // default bloom intensity
|
|
|
} ) );
|
|
} ) );
|
|
|
|
|
|
|
|
const outputPass = scenePass.getTextureNode();
|
|
const outputPass = scenePass.getTextureNode();
|
|
|
|
|
+
|
|
|
const bloomIntensityPass = scenePass.getTextureNode( 'bloomIntensity' );
|
|
const bloomIntensityPass = scenePass.getTextureNode( 'bloomIntensity' );
|
|
|
|
|
|
|
|
const bloomPass = outputPass.mul( bloomIntensityPass ).bloom();
|
|
const bloomPass = outputPass.mul( bloomIntensityPass ).bloom();
|
|
|
|
|
|
|
|
- const postProcessing = new THREE.PostProcessing( renderer );
|
|
|
|
|
- postProcessing.outputColorTransform = false;
|
|
|
|
|
postProcessing.outputNode = outputPass.add( bloomPass ).renderOutput();
|
|
postProcessing.outputNode = outputPass.add( bloomPass ).renderOutput();
|
|
|
|
|
|
|
|
// controls
|
|
// controls
|