文档

Unity Engine


User Manual

Script Reference

Unity Engine


Writing custom shaders in the Built-In Render Pipeline

Resources for writing HLSL code, ShaderLab code, and Surface Shaders in the Built-In Render Pipeline.
阅读时间1 分钟最后更新于 22 天前

重要
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.
Resources for writing HLSL code and Surface Shaders in the Built-In Render Pipeline.

Page

Description

Writing Surface ShadersResources and techniques for writing Surface Shaders in the Built-In Render Pipeline, which are streamlined shaders that interact with lighting.
Shader methods in the Built-In Render PipelineResources for importing prebuilt shader files and using built-in shader functions in the Built-In Render Pipeline.
Get the current framebuffer with the GrabPass commandCreate a special type of Pass that grabs the contents of the frame buffer into a texture, so you can use it in subsequent passes to do advanced image based effects.
HLSL shader examples in the Built-In Render PipelineExamples of HLSL shaders in the Built-In Render Pipeline.