Writing Shaders
Usage and Performance of Built-in Shaders

Legacy Shaders

Prior to the introduction of the Physically Based Standard Shader, Unity was supplied with more than eighty built-in shadersA small script that contains the mathematical calculations and algorithms for calculating the Color of each pixel rendered, based on the lighting input and the Material configuration. More info
See in Glossary
which each served different purposes. These shaders are still included and available for use in Unity for backwards compatibility but we recommend you use the Standard ShaderA built-in shader for rendering real-world objects such as stone, wood, glass, plastic and metal. Supports a wide range of shader types and combinations. More info
See in Glossary
wherever possible for new projects.

This section begins by explaining how to use the legacy built-in shaders to maximum effect. The remainder of the section details all the available shaders, grouped into related “families”.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答