x


What exactly is a 'legacy' shader?

-As far as I can tell its a Unity 2.6 shader that now doesn't exist in Unity 3. Is that correct? If so, I'm wondering why the shaders still work correctly but dont appear anywhere in the project file.

??

more ▼

asked Oct 19 '10 at 12:53 PM

Grimmy gravatar image

Grimmy
533 58 64 69

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

1 answer: sort oldest

No, it is not correct. A Legacy shader is not a shader that doesn't exist. In order for it to even be discussed, it would have to exist. Legacy shaders are shaders that rely on functionality that may no longer be supported within the current implementation of the shader system because that functionality has been deprecated or removed.

Legacy shaders by definition may or may not work in the current shader system, but they will still exist within the project folder for existing legacy projects opened in the current version of the editor. Upon importing these shaders, the editor will attempt to upgrade sections of the shader that it identifies as legacy and unsupported, but this will not generally catch everything and will break some shaders. For example some cg shader programs, etc. will be upgraded and a note will be added that they should be re-written into surface shaders, but the upgrade will not convert them into surface shaders for you. If the shader no longer compiles, it will generate errors in the log and anything using the shader will turn a bright pink.

Please see this link for some of the differences between Unity 2.x and 3.x shaders.

more ▼

answered Oct 19 '10 at 04:22 PM

skovacs1 gravatar image

skovacs1
10k 11 25 92

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

x1738
x42

asked: Oct 19 '10 at 12:53 PM

Seen: 1590 times

Last Updated: Oct 19 '10 at 12:53 PM