Material.Material
void Material(Shader shader)
Creates a material from a shader, and uses the shader’s default settings. Uses an auto-generated id.
Shader shader | Any valid shader. |
void Material(string id, Shader shader)
Creates a material from a shader, and uses the shader’s default settings.
string id | Set the material’s id to this. |
Shader shader | Any valid shader. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!