mirror of
https://github.com/galacean/engine.git
synced 2026-06-20 13:22:18 +08:00
Merge pull request #2701 from galacean/doc/multi-shader-syntax
fix: doc syntax
This commit is contained in:
@@ -53,6 +53,8 @@ Additionally, the `UsePass` directive supports reusing built-in engine passes. C
|
||||
|
||||
<Callout>
|
||||
The `SubShader` is not only used for organizing multiple passes but also supports setting `Tags`, which correspond to the engine's [setTag](/apis/galacean/#SubShader-setTag) API. For example, setting a `ReplaceTag`:
|
||||
</Callout>
|
||||
|
||||
|
||||
```glsl showLineNumbers
|
||||
SubShader "SubShaderName" {
|
||||
@@ -62,5 +64,4 @@ SubShader "SubShaderName" {
|
||||
Pass "PassName" {
|
||||
...
|
||||
}
|
||||
}
|
||||
</Callout>
|
||||
}
|
||||
Reference in New Issue
Block a user