Merge pull request #2 from Live2D/feature/fix_webgl

Fix webgl uniform.
translate
Takuya Ito 2018-09-21 17:27:10 +09:00 committed by GitHub
commit b766285f41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -901,7 +901,7 @@ export namespace Live2DCubismFramework
// テクスチャ設定
this.gl.activeTexture(this.gl.TEXTURE0);
this.gl.bindTexture(this.gl.TEXTURE_2D, textureId);
this.gl.uniform1f(shaderSet.samplerTexture0Location, 0);
this.gl.uniform1i(shaderSet.samplerTexture0Location, 0);
// 頂点配列の設定(VBO)
if(vertexBuffer == null)