@@ -7,12 +7,11 @@ A bloom effect.
77
88``` jsx
99import { Bloom } from ' @react-three/postprocessing'
10- import { BlurPass , Resizer , KernelSize , Resolution } from ' postprocessing'
10+ import { KernelSize , Resolution } from ' postprocessing'
1111
1212return (
1313 < Bloom
1414 intensity= {1.0 } // The bloom intensity.
15- blurPass= {undefined } // A blur pass.
1615 kernelSize= {KernelSize .LARGE } // blur kernel size
1716 luminanceThreshold= {0.9 } // luminance threshold. Raise this value to mask out darker elements in the scene.
1817 luminanceSmoothing= {0.025 } // smoothness of the luminance threshold. Range is [0, 1]
@@ -54,14 +53,16 @@ clamp colors between 0 and 1 again.
5453
5554## Props
5655
57- | Name | Type | Default | Description |
58- | ------------------ | ------------------------------------------------------------------------------------------------------------ | -------------------- | ---------------------------------------------------------------------------------------------------- |
59- | luminanceThreshold | Number | 0.9 | The luminance threshold. Raise this value to mask out darker elements in the scene. Range is [ 0, 1] . |
60- | luminanceSmoothing | Number | 0.025 | Controls the smoothness of the luminance threshold. Range is [ 0, 1] . |
61- | blendFunction | BlendFunction | BlendFunction.SCREEN | The blend function of this effect. |
62- | intensity | Number | 1 | The intensity. |
63- | resolutionX | Number | Resizer.AUTO_SIZE | The render width. |
64- | resolutionY | Number | Resizer.AUTO_SIZE | The render height. |
65- | kernelSize | Number | KernelSize.LARGE | The blur kernel size. |
66- | blurPass | [ BlurPass] ( https://vanruesc.github.io/postprocessing/public/docs/class/src/passes/BlurPass.js~BlurPass.html ) | null | An efficient, incremental blur pass. |
67- | mipMap | Boolean |
56+ | Name | Type | Default | Description |
57+ | ------------------ | ------------- | -------------------- | ---------------------------------------------------------------------------------------------------- |
58+ | luminanceThreshold | Number | 0.9 | The luminance threshold. Raise this value to mask out darker elements in the scene. Range is [ 0, 1] . |
59+ | luminanceSmoothing | Number | 0.025 | Controls the smoothness of the luminance threshold. Range is [ 0, 1] . |
60+ | blendFunction | BlendFunction | BlendFunction.ADD | The blend function of this effect. |
61+ | intensity | Number | 1 | The intensity. |
62+ | resolutionX | Number | Resolution.AUTO_SIZE | The render width. |
63+ | resolutionY | Number | Resolution.AUTO_SIZE | The render height. |
64+ | kernelSize | Number | KernelSize.LARGE | The blur kernel size. |
65+ | mipmapBlur | Boolean | true | Enables mipmap blur. |
66+ | radius | Number | 0.85 | The mipmap blur radius. Only used with mipmapBlur. |
67+ | levels | Number | 8 | The number of mipmap blur levels. Only used with mipmapBlur. |
68+ | opacity | Number | 1 | The opacity of this effect. |
0 commit comments