Пример #1
0
        public WebGLUniformLocation GetUniformLocation(WebGLProgram program, string name)
        {
            var jsObject = (JSObject)Invoke("getUniformLocation", program?.Handle, name);
            var wrapper  = new WebGLUniformLocation(jsObject);

            return(wrapper);
        }
Пример #2
0
        public void UniformMatrix4fv(WebGLUniformLocation location, bool transpose, float[] value)
        {
            var array = CastNativeArray(value);

            Invoke("uniformMatrix4fv", location?.Handle, transpose, array);
        }
Пример #3
0
 public void Uniform2f(WebGLUniformLocation location, object v0, object v1) =>
 Invoke("uniform2f", location?.Handle, v0, v1);
Пример #4
0
 public void Uniform1i(WebGLUniformLocation location, object x) => Invoke("uniform1i", location?.Handle, x);