Tweak Stardust Placement

Quick commit before I break everything by upgrading Unity
Modified vertical placement code for stardust particles
This commit is contained in:
Reinier Vens 2022-07-17 21:51:51 +01:00
commit ae79a152e9
9 changed files with 26 additions and 19 deletions

View file

@ -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