({ texture }, sampler, uniformName, unit)
| 1224 | } |
| 1225 | |
| 1226 | bindTextureToShader({ texture }, sampler, uniformName, unit) { |
| 1227 | const gl = this.GL; |
| 1228 | gl.activeTexture(gl.TEXTURE0 + unit); |
| 1229 | gl.bindTexture(gl.TEXTURE_2D, texture); |
| 1230 | const location = gl.getUniformLocation(glProgram, uniformName); |
| 1231 | gl.uniform1i(location, unit); |
| 1232 | } |
| 1233 | |
| 1234 | setTextureParams(texture) { |
| 1235 | return setWebGLTextureParams(texture, this.GL, this.webglVersion); |
nothing calls this directly
no test coverage detected