@footgun/cobalt 0.6.5 → 0.6.6

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,3 +1,7 @@
1
+ # 0.6.6
2
+ * add sdl + webgpu support for tile node
3
+
4
+
1
5
  # 0.6.5
2
6
  * add sdl + webgpu support for tile node
3
7
 
package/bundle.js CHANGED
@@ -14247,7 +14247,7 @@ async function init10(cobalt, nodeData) {
14247
14247
  if (canvas) {
14248
14248
  atlasMaterial = await await createTextureFromUrl(cobalt, "tile atlas", nodeData.options.textureUrl, format);
14249
14249
  } else {
14250
- atlasMaterial = await await createTextureFromUrl(cobalt, "tile atlas", nodeData.options.texture, format);
14250
+ atlasMaterial = await await createTextureFromBuffer(cobalt, "tile atlas", nodeData.options.texture, format);
14251
14251
  }
14252
14252
  const uniformBuffer = device.createBuffer({
14253
14253
  size: 32,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@footgun/cobalt",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "type": "module",
5
5
  "main": "bundle.js",
6
6
  "description": "A 2D WebGpu renderer",
package/src/tile/atlas.js CHANGED
@@ -51,7 +51,7 @@ async function init (cobalt, nodeData) {
51
51
  }
52
52
  else {
53
53
  // sdl + gpu path
54
- atlasMaterial = await await createTextureFromUrl(cobalt, 'tile atlas', nodeData.options.texture, format)
54
+ atlasMaterial = await await createTextureFromBuffer(cobalt, 'tile atlas', nodeData.options.texture, format)
55
55
  }
56
56
 
57
57
  const uniformBuffer = device.createBuffer({