Material.Material
Material(Shader shader)
Shader shader | Any valid shader. |
Creates a material from a shader, and uses the shader’s default settings. Uses an auto-generated id.
Material(string id, Shader shader)
string id | Set the material’s id to this. |
Shader shader | Any valid shader. |
Creates a material from a shader, and uses the shader’s default settings.