@footgun/cobalt 0.6.7 → 0.6.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@footgun/cobalt",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "type": "module",
5
5
  "main": "bundle.js",
6
6
  "description": "A 2D WebGpu renderer",
package/src/tile/tile.js CHANGED
@@ -100,7 +100,7 @@ async function init (cobalt, nodeData) {
100
100
  let material
101
101
 
102
102
  const format = getPreferredFormat(cobalt)
103
-
103
+
104
104
  // build the tile layer and add it to the cobalt data structure
105
105
  if (canvas) {
106
106
  // browser (canvas) path
@@ -108,7 +108,7 @@ async function init (cobalt, nodeData) {
108
108
  }
109
109
  else {
110
110
  // sdl + gpu path
111
- material = await createTextureFromBuffer(cobalt, 'tile map', node.options.texture, format)
111
+ material = await createTextureFromBuffer(cobalt, 'tile map', nodeData.options.texture, format)
112
112
  }
113
113
 
114
114
  const dat = new Float32Array([ nodeData.options.scrollScale, nodeData.options.scrollScale ])