fix wireworld timing

This commit is contained in:
Crispy 2023-06-21 22:50:39 +02:00
parent 7118b82a89
commit cf9e4b266d

View file

@ -82,8 +82,8 @@
const float d = 1.0/resolution;
float t = tex2D(_LastFrame, 0).r;
if (i.uv.x < 0.01 && i.uv.y < 0.01) {
if (t > 0.9){
if (i.uv.x < d && i.uv.y < d) {
if (t > 0.9) {
return float4(0, 0, 0, 1);
}
t = t + 0.02;