Place deposited material from ant cargo in world
This commit is contained in:
parent
489f121064
commit
290d27d85f
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue