Hi,I finally found a way to access the Post-processing profile to change Dof settings but I have a problem, I said in another post that the player would change the focus distance with the keyboard to get focus on different objects in the sky like with a real telescope but the problem is that I can’t just change the focus distance because some objects are very far, like Neptune or Pluto and some others are very close like the Moon. I tried to change the focus distance to the exact distance between the telescope and the object and the player would change the aperture instead of the focus distance but it doesn’t work, someone have a solution?
I think instead of using post-processing DoF I would do this as a specialized effect, if you are building something that is actually simulating some star/planet gazing activity.
I’d imagine it would be somewhat easy to apply a gaussian blur filter in a shader to a planet when it is in “focus”, if it’s a 2D element.
It’s of course possible to build some blur system for 3D objects too (like capture them to a RenderTexture and apply that texture to a plane and then render it. Or use a gaussian blur image effect that you control (if that fits to your specific setup.)