Exemplo n.º 1
0
        internal async Task UseAsync(WebGLUniformLocation uniform, int binding)
        {
            await _gl.ActiveTextureAsync((Blazor.Extensions.Canvas.WebGL.Texture) Enum.Parse(typeof(Blazor.Extensions.Canvas.WebGL.Texture), "TEXTURE" + binding));

            await _gl.BindTextureAsync(TextureType.TEXTURE_2D, _texture);

            await _gl.UniformAsync(uniform, binding);
        }