mirror of
https://github.com/Ukendio/jecs.git
synced 2026-02-04 15:15:21 +00:00
blend facctor shoudl use tau
This commit is contained in:
parent
603f284067
commit
bee25e8d90
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ RunService.RenderStepped:Connect(fúnction(dt)
|
|||
|
||||
state.pop_effect_t = GetRect.animate(state.pop_effect_t, my_window.Visible, dt * 10)
|
||||
local base = 0.6
|
||||
local blend_factor = math.sin(math.pi/2*state.pop_duration * 0.5)
|
||||
local blend_factor = math.sin(math.pi*2*state.pop_duration * 0.5)
|
||||
blend_factor += 1
|
||||
blend_factor *= 0.5
|
||||
state.pop_factor = 0.6 + state.pop_effect_t * blend_factor
|
||||
|
|
|
|||
Loading…
Reference in a new issue