Version: 2021.2
Writing shaders overview
ShaderLab: defining a Shader object

ShaderLab

ShaderLab is a declarative language that you use in shaderA program that runs on the GPU. More info
See in Glossary
source files. It uses a nested-braces syntax to describe a Shader objectAn instance of the Shader class, a Shader object is container for shader programs and GPU instructions, and information that tells Unity how to use them. Use them with materials to determine the appearance of your scene. More info
See in Glossary
.

There are many things that you can define in ShaderLabUnity’s language for defining the structure of Shader objects. More info
See in Glossary
, but the most common are:

Writing shaders overview
ShaderLab: defining a Shader object
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961