Version: Unity 6.2 Alpha (6000.2)
Language : English
Shader languages reference
Shader in ShaderLab reference

ShaderLab language reference

Find the blocks, directives, and commands you need to write a shader in ShaderLabUnity’s language for defining the structure of Shader objects. More info
See in Glossary
.

Page Description
ShaderA program that runs on the GPU. More info
See in Glossary
Explore the Shader block in ShaderLab to create a shader, and add material properties, custom editors and a fallback shader.
SubShader Explore the SubShader block in ShaderLab to create a subshader, and add LODThe Level Of Detail (LOD) technique is an optimization that reduces the number of triangles that Unity has to render for a GameObject when its distance from the Camera increases. More info
See in Glossary
values, tags, or a UsePass or GrabPass directive.
Pass Explore the Pass block in ShaderLab to create a shader pass, and add a name, tags, and shader code blocks.
GPU render state commands Find the commands in ShaderLab you need to change the render state on the GPU, such as Blend, Cull and ZWrite.
PackageRequirements block Explore the PackageRequirements block in ShaderLab to specify required packages for a subshader or shader pass.
ShaderLab legacy functionality reference Explore the ShaderLab commands that allow you to write shaders without using any HLSL code.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
Shader languages reference
Shader in ShaderLab reference
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961