Place deposited material from ant cargo in world

This commit is contained in:
Jared Miller 2026-03-11 15:25:26 -04:00
parent 489f121064
commit 290d27d85f
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C

View file

@ -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);
}