Tweak Stardust Placement
Quick commit before I break everything by upgrading Unity Modified vertical placement code for stardust particles
This commit is contained in:
parent
c3329cecc4
commit
ae79a152e9
9 changed files with 26 additions and 19 deletions
|
|
@ -16,7 +16,7 @@ float DeltaTime;
|
|||
|
||||
// Adjustment
|
||||
int2 Delta;
|
||||
float Fade;
|
||||
float Damping;
|
||||
|
||||
// External force
|
||||
float2 ForceOrigin;
|
||||
|
|
@ -73,7 +73,7 @@ void Adjust(uint2 tid : SV_DispatchThreadID)
|
|||
|
||||
if(any(prevUV<0)||any(prevUV>1))
|
||||
W_out[tid] = f.xz;
|
||||
else W_out[tid] = lerp(U_in.SampleLevel(samplerU_in, prevUV, 0), f.xz, Fade);
|
||||
else W_out[tid] = lerp(U_in.SampleLevel(samplerU_in, prevUV, 0), f.xz, Damping);
|
||||
}
|
||||
|
||||
// Advect step
|
||||
|
|
|
|||
Loading…
Reference in a new issue