x


How do you modify the pixel color after all lighting passes are done?

I would like to alter the final pixel color after all the additive passes have been done. I thought I may be able to do this with Surface Shaders, and I saw the finalcolor option, but that only seems to come at the end of each pass, rather than after the passes have been done.

Alternatively, is there a way to control how the results from each pass are added?

more ▼

asked May 07 '12 at 10:10 AM

Curyous gravatar image

Curyous
70 10 17 19

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

finalcolor option controls a final color for current pass, so you need to control it in each pass to get an effect you need

it's a some expensive method to do a finalcolor for all passes - it's a GrabPass (http://docs.unity3d.com/Documentation/Components/SL-GrabPass.html) - after this pass you can do everything you want in next pass

alternatively it's a blend options (http://docs.unity3d.com/Documentation/Components/SL-Blend.html) - it controls how pixels calculated in each pass are blending with other pixels that are rendered before

more ▼

answered Jul 20 '12 at 07:47 AM

ScroodgeM gravatar image

ScroodgeM
7.6k 2 6

(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:

x425
x23
x20
x10

asked: May 07 '12 at 10:10 AM

Seen: 405 times

Last Updated: Jul 20 '12 at 07:47 AM