Add texture sources for WebGL
This commit is contained in:
parent
29fd8b2d53
commit
3ddc37a7e9
1 changed files with 11 additions and 0 deletions
|
@ -53,5 +53,16 @@
|
|||
},
|
||||
renderbufferTarget: () => {
|
||||
return 'RENDERBUFFER'
|
||||
},
|
||||
textureSources: () => {
|
||||
sources = [
|
||||
'HTMLCanvasElement',
|
||||
'HTMLImageElement',
|
||||
'HTMLVideoElement',
|
||||
'ImageBitmap',
|
||||
'ImageData',
|
||||
'ArrayBufferView'
|
||||
]
|
||||
return random.item(sources)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue