예제 #1
0
        public void SetVector3(string name, Vector3 value)
        {
            var location = GL.GetUniformLocation(_handle, name);

            GL.Uniform3(location, value);
        }
예제 #2
0
        public void SetMatrix4(string name, Matrix4 data)
        {
            var location = GL.GetUniformLocation(_handle, name);

            GL.UniformMatrix4(location, true, ref data);
        }
예제 #3
0
        public void SetFloat(string name, float value)
        {
            var location = GL.GetUniformLocation(_handle, name);

            GL.Uniform1(location, value);
        }