depth of field simple question

Hi everyone,

I’m using the depth of field script from the shader replacement example and…

  1. I would like to remove the “yellow bar” that show the current focal distance/range but I don’t know anything about shader programming and I don’t find it in the code…

looking at the js my guess is: is it the render scene shader?
do I have to remove it from the project and delete any reference from the script? (so basically delete the OnPreRender function?).

  1. is the only transparent material accepted the cutout? there’s any extension for using a normal transparent diffuse?

Thank you

uhm 110 views and 0 reply, and I thought it was a simple question :smile:

there’s any way to ask this directly to someone inside the unity team?

  1. There’s a script ‘DOFGui’ on the camera that displays the box with distance/range information - remove that from the camera to get rid of the gui.

  2. This way of doing DOF unfortunately does not work with semitransparent objects AFAIK.

/Patrik