bevy_ecs_tilemap
bevy_ecs_tilemap copied to clipboard
WASM Support for texture arrays
The crate doesn't seem to work with WASM, as it doesn't render anything. Tried the LDTK example and got this:
You need to use the atlas
feature on WASM. There is a wgpu bug with array textures.
Works perfectly, thanks!
@StarArawn Can you link to the relevant WGPU issue here? With that, we can close this issue, I think.
@StarArawn Can you link to the relevant WGPU issue here? With that, we can close this issue, I think.
No issue that I know of. I can probably create one though. I need to collect more info though.
Are there any downsides/overhead to the atlas
feature, or is it safe to just activate on all target archs?
Are there any downsides/overhead to the
atlas
feature, or is it safe to just activate on all target archs?
There are more rendering artifacts because atlases inherently bleed neighboring pixels. Texture arrays are generally better and are supported by webGPU if that is your target.