#its when it starts going back from the
1 messages · Page 1 of 1 (latest)
why are you doing
while (duration < MAX_DURATION / 2)
?
just to make the effect go out faster than the in time
then you should double the value added to duration not half the way to go
ooo
Mathf.Lerp(0.6f, 0, duration) expects duration to be between 0 and 1
if you only go from 0 to 0.5 it will only do half the way and then jump
if you the the values after the loop
duration += Time.deltaTime / (MAX_DURATION / 2); i needed this. you're right
its still popping, i just dont understand
its as soon as the coroutine starts. And right after the first while loop
mmmm i dont see how that can come from that code...
given i dont test with the post prcessing just with debug logs and draw rays
found it
@fresh nebula
its the MAX_DURATION
the jump is gone if you set it to 1
simular to the
MAX_DURATION / 2
you did limit the maximum value to reach
that is the issue
omfg
if you want it to go faster you have to use the multyply on the Time.deltaTime that gets added to duration