文档

Unity Engine


User Manual

Script Reference

Unity Engine


Surface Shader examples in the Built-In Render Pipeline

Examples of Surface Shaders in the Built-In Render Pipeline.
阅读时间1 分钟最后更新于 11 天前

重要
The Built-In Render Pipeline is deprecated and will be made obsolete in a future release.
It remains supported, including bug fixes and maintenance, through the full Unity 6.7 LTS lifecycle.
The Universal Render Pipeline (URP) doesn't support surface shaders. For more information on how to replace surface shaders in URP, refer to Convert custom shaders for URP compatibility.
Examples of Surface Shaders in the Built-In Render Pipeline.

Page

Description

Normal mapping Surface Shader exampleAn example of a Surface Shader that uses normal mapping.
Reflection Surface Shader examplesAn example of a Surface Shader that renders reflections of the sky.
Vertex function Surface Shader exampleExample of a Surface Shader that has a custom vertex function.
Custom data Surface Shader exampleAn example of a Surface Shader that inputs a custom color.
Final color modifier Surface Shader exampleAn example of a Surface Shader that modifies the final output color.
Decals Surface Shader exampleAn example of a Surface Shader that renders a decal to add detail to a material.
Wrapped diffuse Surface Shader exampleAn example of a Surface Shader where lighting wraps around the edges of objects.
Toon shading Surface Shader exampleAn example of a Surface Shader that uses a texture ramp to define how surfaces respond to the angles between the light and the surface normal.
Global illumination Surface Shader exampleAn example of a Surface Shader that mimics Unity's built-in global illumination.
Tessellation Surface Shader examplesAn example of a Surface Shader that uses the
tessellate
directive to tessellate triangles.