Shader clone()

Returns a hard copy (clone) of the current shader.

Source

Shader clone();