({ texture, glFormat, glDataType }, data, width, height)
| 1205 | } |
| 1206 | |
| 1207 | uploadTextureFromData({ texture, glFormat, glDataType }, data, width, height) { |
| 1208 | const gl = this.GL; |
| 1209 | gl.texImage2D( |
| 1210 | gl.TEXTURE_2D, |
| 1211 | 0, |
| 1212 | glFormat, |
| 1213 | width, |
| 1214 | height, |
| 1215 | 0, |
| 1216 | glFormat, |
| 1217 | glDataType, |
| 1218 | data |
| 1219 | ); |
| 1220 | } |
| 1221 | |
| 1222 | getSampler(_texture) { |
| 1223 | return undefined; |