Day&Night

This commit is contained in:
numzero 2025-01-11 03:39:09 +03:00
parent c39fca1567
commit 1ad22dbb35

View File

@ -23,8 +23,11 @@ fn on_fragment(in: Varying) -> @location(0) u32 {
let state = a.y;
let n = a.x + a.z + a.w + b.x + b.y + c.y + c.z + d.y;
switch (n) {
case 2u: { return state; }
case 3u: { return 1u; }
case 4u: { return state; }
case 6u: { return 1u; }
case 7u: { return 1u; }
case 8u: { return 1u; }
default: { return 0u; }
}
}