public void SetVector3(string name, Vector3 value) { var location = GL.GetUniformLocation(_handle, name); GL.Uniform3(location, value); }
public void SetMatrix4(string name, Matrix4 data) { var location = GL.GetUniformLocation(_handle, name); GL.UniformMatrix4(location, true, ref data); }
public void SetFloat(string name, float value) { var location = GL.GetUniformLocation(_handle, name); GL.Uniform1(location, value); }