0
\$\begingroup\$

Yesterday I asked and solved my problem:

Unity / How do I change the color of an object based on its depth?

Today I tried to change the script(from yesterday) and apply it to the camera and it did not work.

Every pixel which is printed on the Display has a depth (float), is that right?

Based on that Depth - I want every object to fade grey, relative to the screen distance to that "pixel".

Is this possible?

Or do I have to use that vertex/fragment shader on every single Object and Plane and Sky and everything in the world?

\$\endgroup\$
2
  • 1
    \$\begingroup\$ You jibbah-jabbah a lot. Try to keep your questions concise. \$\endgroup\$
    – jgallant
    Jul 5 '16 at 10:36
  • 1
    \$\begingroup\$ Please avoid creating multiple accounts. Visit this page to have them merged. \$\endgroup\$
    – Vaillancourt
    Jul 5 '16 at 11:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.