示例#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 SetVector(string name, Vec4 value)
 {
     NativeAPI.material_set_vector(_materialInst, name, value);
 }
示例#2
0
 [DllImport(NativeLib.DllName, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)] public static extern void   material_set_vector(IntPtr material, string name, Vec4 value);