diff --git a/package.json b/package.json index 30ea841..a346981 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "scripts": { "build": "webpack --config ./webpack.config.js --mode=production", - "dev": "webpack serve --config ./webpack.config.js --mode=development", + "start": "webpack serve --config ./webpack.config.js --mode=development", "gh-pages": "npm run build && push-dir --dir=build --branch=gh-pages" }, "author": "", diff --git a/src/shaders/antsCompute.frag b/src/shaders/antsCompute.frag index 93c07de..2e22071 100644 --- a/src/shaders/antsCompute.frag +++ b/src/shaders/antsCompute.frag @@ -24,7 +24,7 @@ float rand(vec2 co) { } vec2 roundUvToCellCenter(vec2 uv) { - return floor(uv * WORLD_SIZE) / WORLD_SIZE; + return floor(uv * WORLD_SIZE) / WORLD_SIZE + cellSize * 0.5; } bool tryGetFood(vec2 pos) {