x


Excluding objects from depth of field.

Hello, I'm using the Shader Replacement depth of field script in my game, but I've found that it doesn't work well with particles. They become blurry no matter what range they are at. Is there any way to remedy this, or perhaps exclude the particle objects entirely from the auto-generated depth texture?

more ▼

asked Mar 27 '10 at 10:05 AM

simoniversensblog gravatar image

simoniversensblog
36 2 2 3

I know nothing of shader-voodoo, you'd probably be helped best here: http://forum.unity3d.com/forums/16-ShaderLab. My guess is however that either you'll have to modify the shader to exclude particles or put the particles on an other layer, let an other camera film them and put that over your normal cameras view.

May 25 '11 at 10:55 PM Joshua
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I have had the same problem, they seem to start to blur once they reach the horizon line.

more ▼

answered Mar 21 '11 at 03:42 AM

Rust E gravatar image

Rust E
12 1 1 3

This is a comment and not an Answer. Would be good to change it to a comment so others would know this question hasn't been answered.

May 25 '11 at 09:36 PM Barrett Fox
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x641
x78
x21
x18

asked: Mar 27 '10 at 10:05 AM

Seen: 1641 times

Last Updated: May 25 '11 at 10:55 PM