I'm trying to do some blurred light dots and for doing this:
- I have made a particle emitter with a shiny particles
- I have decreased the focus distance of the camera
In the viewport I see the result that I want, but when I try to render I have obtained a different picture as you can see in the next 2 photos
After the suggestion of Blunder my result is closer to the viewport, but it's like if where there is a small amount of light is not computed:




