Here is the PG: https://playground.babylonjs.com/#JTUL5N#4, where I create a ground and set the diffuseTexture as an white image. When I open the bloom (in my situation, I must open it), the ground seems overexposure ,like the following image shows.
the edge of the ground seems bloom, but if the texture is not a pure white one, such as rgb=254, not 255, then the edge of the ground will not be bloom
well, it’s my fault. my question is not really clear.
I want to know why the edge seems bloom if the texture rgb=(255,255,255) when I open the bloom postprocess. And if the texture rgb=(254,254,254), the edge will not seems bloom
I think it’s because the luminance threshold is set to 1, so then only the brightest color (255, 255, 255) is bloomed because any other color will be less bright, with a luminance less than 1, and so will be filtered out by the bloom effect.
Maybe confusing the situation, the documentation for DefaultRenderingPipeline’s bloomThreshold property is wrong (it repeats the documentation for bloomWeight). I’ll make a little PR to fix it to be the same as the documentation for the BloomEffect property that it refers to thou. -Edit: here’s the PR.