A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(examples): the Wilds ground textures repeat instead of smearing at their edges
yhh78b67202cfda
diff --git a/examples/wilds/assets/textures/dirt.png.meta b/examples/wilds/assets/textures/dirt.png.metaindex 7efea68e1..e8fd08b12 100644--- a/examples/wilds/assets/textures/dirt.png.meta+++ b/examples/wilds/assets/textures/dirt.png.meta@@ -2,5 +2,7 @@"uuid": "4cb2207f-9288-461c-9ccb-307e0d4097cd","version": "2.0","type": "texture",- "importer": {}+ "importer": {+ "wrapMode": "repeat"+ }}diff --git a/examples/wilds/assets/textures/grass.png.meta b/examples/wilds/assets/textures/grass.png.metaindex 413b69ad9..d779be4eb 100644--- a/examples/wilds/assets/textures/grass.png.meta+++ b/examples/wilds/assets/textures/grass.png.meta@@ -2,5 +2,7 @@"uuid": "6fd01e31-d9ff-4083-901f-182ee813faa3","version": "2.0","type": "texture",- "importer": {}+ "importer": {+ "wrapMode": "repeat"+ }}diff --git a/examples/wilds/assets/textures/rock.png.meta b/examples/wilds/assets/textures/rock.png.metaindex b3c1c7f05..bc0e63d49 100644--- a/examples/wilds/assets/textures/rock.png.meta+++ b/examples/wilds/assets/textures/rock.png.meta@@ -2,5 +2,7 @@"uuid": "e304edee-2b9f-47f0-86a3-604b9315891e","version": "2.0","type": "texture",- "importer": {}+ "importer": {+ "wrapMode": "repeat"+ }}diff --git a/examples/wilds/assets/textures/snow.png.meta b/examples/wilds/assets/textures/snow.png.metaindex 3f03f3e7e..f3d51fb23 100644--- a/examples/wilds/assets/textures/snow.png.meta+++ b/examples/wilds/assets/textures/snow.png.meta@@ -2,5 +2,7 @@"uuid": "d7b144bf-06ad-41d2-997f-a45bea7ece63","version": "2.0","type": "texture",- "importer": {}+ "importer": {+ "wrapMode": "repeat"+ }}diff --git a/examples/wilds/tools/build.mjs b/examples/wilds/tools/build.mjsindex b998c00cc..845997b9e 100644--- a/examples/wilds/tools/build.mjs+++ b/examples/wilds/tools/build.mjs@@ -160,7 +160,8 @@ function texture(name, seed, shade) {return [rgb[0], rgb[1], rgb[2], 255];});write(`assets/textures/${name}.png`, image);- meta(`assets/textures/${name}.png`, 'texture');+ // Tiled by world position across the whole ground: it must repeat, or every texel past the first tile is its edge stretched.+ meta(`assets/textures/${name}.png`, 'texture', { wrapMode: 'repeat' });}function textures() {