Shader:clone
EditClones a shader. This creates an inexpensive copy of it with different flags. It can be used to create several variants of a shader with different behavior.
shader = Shader:clone(source, flags)
Arguments
Name | Type | Description |
source | Shader | The Shader to clone. |
flags | table | The flags used by the clone. |
Returns
Name | Type | Description |
shader | Shader | The new Shader. |