@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/CHANGELOG.md +1 -9
- package/bundle.js +449 -449
- package/package.json +1 -1
- package/src/tile/tile.js +2 -2
package/package.json
CHANGED
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',
|
|
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 ])
|