Depth of Field - not include certain objects

Is there a way to use the Depth of Field scripts in the example project but allow certain objects to not be effected by it? I don’t want the DOF to effect the skybox.

Thanks!

Hello!

We need kinda more info :stuck_out_tongue: Which example project are you referring to?, what does it means DOF? :slight_smile:

This would be in the Shader Replacement examples. And DOF mean Depth of Field. :slight_smile:

A technical writer does not know what DOF means? :shock:

DOF in Unity is found in the shader replacement but I hate it!!! It is too puny for Alphas (whether cutout style or blended)

BUMP (I would like to know the answer for this also…)

Hi,

I have exactly the same problem there… Does anyone have a solution ?

hey,

the skybox is at max depth. so you could for instance early out in the shader that computes the “bluriness” factor (aka “coc”) if you encounter something at maximum depth.

have a look at the 3.0 std assets / image effects (shader: “PreDepthOfField”) and add something like “if(d>0.9999) return 0;” to see the effect …

ole