| Parameter | Description |
|---|---|
| shader | Shader used in the variant. |
| passId | PassIdentifier used in the variant. |
| keywords | Array of keywords used in the variant. |
| material | Material with the shader and enabled keywords used in the variant. |
Boolean True if successfully removed, false otherwise.
Remove ShaderVariant and associated graphics states from collection.
If only the material is provided, then this function will only remove a shader variant matching exactly the set of Material.enabledKeywords combined with the global shader keywords that are currently enabled in the active context.
Additional resources: RemoveGraphicsStatesForVariant, ContainsVariant.