Create a TextureInfo, called automatically by the engine
image HTMLImageElement|HTMLCanvasElement|OffscreenCanvas|ImageBitmapuseWebGL boolean optional, default trueShould use WebGL if available?
wrap boolean|Array<number> optional, default falseShould the texture wrap (REPEAT) or clamp (CLAMP_TO_EDGE)? Or the WebGL
modes across and down, like [gl.CLAMP_TO_EDGE, gl.MIRRORED_REPEAT], as a glTF sampler gives them
pixelated boolean optionalHard edged or smooth for this texture alone, undefined follows tilesPixelated
Hard edged or smooth for this texture alone, a soft glow in a pixel art
game or pixel art in a smooth one; undefined follows tilesPixelated
inverse of the size, cached for rendering
true for REPEAT wrap mode, false for CLAMP_TO_EDGE, or the WebGL modes
across and down
Creates the WebGL texture, updates if already created
Destroys the WebGL texture
Check if the texture is webgl enabled
Make this texture hard edged or smooth on its own, whatever tilesPixelated says for the rest; it is made again
with the new filtering
pixelated boolean optionalundefined follows tilesPixelated again
Set the wrap mode for this texture
wrap boolean|Array<number> optional, default truetrue for REPEAT, false for CLAMP_TO_EDGE, or the WebGL modes across
and down