示例#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 SetTexture(string name, Tex value)
 {
     NativeAPI.material_set_texture(_materialInst, name, value._texInst);
 }