@footgun/cobalt 0.6.9 → 0.6.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,10 @@
1
+ # 0.6.10
2
+ * bugfix in tile node setTexture function
3
+
1
4
  # 0.6.9
2
5
  * bugfix in tile atlas setTexture function
3
6
 
4
- :
7
+
5
8
  # 0.6.8 - 0.6.5
6
9
  * add sdl + webgpu support for tile node
7
10
 
package/bundle.js CHANGED
@@ -8227,7 +8227,7 @@ var tile_default = {
8227
8227
  const format = getPreferredFormat(cobalt);
8228
8228
  let material;
8229
8229
  if (canvas) {
8230
- node.options.textureUrl = textureUrl;
8230
+ node.options.textureUrl = texture;
8231
8231
  material = await createTextureFromUrl(cobalt, "tile map", texture, format);
8232
8232
  } else {
8233
8233
  material = await createTextureFromBuffer(cobalt, "tile map", texture, format);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@footgun/cobalt",
3
- "version": "0.6.9",
3
+ "version": "0.6.10",
4
4
  "type": "module",
5
5
  "main": "bundle.js",
6
6
  "description": "A 2D WebGpu renderer",
package/src/tile/tile.js CHANGED
@@ -59,7 +59,7 @@ export default {
59
59
 
60
60
  if (canvas) {
61
61
  // browser (canvas) path
62
- node.options.textureUrl = textureUrl
62
+ node.options.textureUrl = texture
63
63
  material = await createTextureFromUrl(cobalt, 'tile map', texture, format)
64
64
  }
65
65
  else {