AddVariant(Shader, PassIdentifier, LocalKeyword[])
Adds a new shader variant to the collection.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine.Experimental.Rendering
- Assembly: UnityEngine.CoreModule
public bool AddVariant(Shader shader, PassIdentifier passId, LocalKeyword[] keywords)
Parameters
Shader used in the variant.
PassIdentifier used in the variant.
Array of keywords used in the variant.
Returns
Type | Description |
|---|---|
| bool | Returns true if the variant was added, false otherwise. |