Open einarf opened 2 years ago
This might be a dupe of #991
I don't think it's a direct dupe, but it's good to get them linked up to provide the most information. It might be a sub-issue of this one.
This is still in experimental and is subject to change. We can move this to 3.x
Having a
BackgroundTexture
class solves quite a few use cases that are difficult for most users to implement without having to use shaders. The name can still be debated. It's pretty close to aRenderTargetTexture
currently in experimental, so maybe we should look into that relation. TheBackgroundTexture
is just a wrapper over anarcade.gl.Texture
.Some ponts:
BackgroundTexure.from_file(path)
would load an image from file. Possibly using the texture cacheMat3
directly for finer control over texture coordinate transformationswith bg.enabled()
arcade.gl.geometry
.More thinking is needed.