fix wireworld timing
This commit is contained in:
parent
7118b82a89
commit
cf9e4b266d
1 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@
|
||||||
const float d = 1.0/resolution;
|
const float d = 1.0/resolution;
|
||||||
|
|
||||||
float t = tex2D(_LastFrame, 0).r;
|
float t = tex2D(_LastFrame, 0).r;
|
||||||
if (i.uv.x < 0.01 && i.uv.y < 0.01) {
|
if (i.uv.x < d && i.uv.y < d) {
|
||||||
if (t > 0.9) {
|
if (t > 0.9) {
|
||||||
return float4(0, 0, 0, 1);
|
return float4(0, 0, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue