Ejemplo n.º 1
0
 /// <summary>Sets a shader parameter with the given name to the provided value. If no parameter
 /// is found, nothing happens, and the value is not set!</summary>
 /// <param name="name">Name of the shader parameter.</param>
 /// <param name="value">New value for the parameter.</param>
 public void SetColor(string name, Color value)
 {
     NativeAPI.material_set_color(_materialInst, name, value);
 }
Ejemplo n.º 2
0
 /// <summary>Sets a shader parameter with the given name to the provided value. If no parameter
 /// is found, nothing happens, and the value is not set!</summary>
 /// <param name="name">Name of the shader parameter.</param>
 /// <param name="value">New value for the parameter.</param>
 public void SetColor(string name, Color32 value)
 {
     NativeAPI.material_set_color(_materialInst, name, new Color(value.r / 255f, value.g / 255f, value.b / 255f, value.a / 255f));
 }