From 290d27d85f537a876bc819b61233cf4f9b255469 Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Wed, 11 Mar 2026 15:25:26 -0400 Subject: [PATCH] Place deposited material from ant cargo in world --- src/shaders/world.frag | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/shaders/world.frag b/src/shaders/world.frag index fae319b..a2a19a4 100644 --- a/src/shaders/world.frag +++ b/src/shaders/world.frag @@ -22,5 +22,11 @@ void main() { materialId = float(MAT_AIR); } + // ant deposited material at this cell (only into air cells) + int depositMatId = int(round(discreteAnts.w * 255.)); + if (depositMatId > 0 && int(materialId) == MAT_AIR) { + materialId = float(depositMatId); + } + FragColor = vec4(materialId, scentToHome, scentToFood, repellent); }