@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 +4 -0
- package/bundle.js +1 -1
- package/package.json +1 -1
- package/src/tile/atlas.js +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
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
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
|
|
54
|
+
atlasMaterial = await await createTextureFromBuffer(cobalt, 'tile atlas', nodeData.options.texture, format)
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
const uniformBuffer = device.createBuffer({
|