| Parameter | Description |
|---|---|
| shader | Shader used in the variant. |
| passId | PassIdentifier used in the variant. |
| keywords | LocalKeyword array of keywords used in the variant. |
| material | Material with the shader and enabled keywords used in the variant. |
Boolean True if a new variant was added, false otherwise.
Adds a new shader variant to the collection.
If only the material is provided, then the generated ShaderVariant will use the set of Material.enabledKeywords combined with the global shader keywords that are currently enabled in the active context.
Additional resources: AddVariants, RemoveVariant, ContainsVariant.