Skip to content

Commit

Permalink
Take mrlinds' suggestion in #40
Browse files Browse the repository at this point in the history
Change-Id: Id000b0154052c9f6bbd526ddad06a94ccb14a92f
  • Loading branch information
dubois committed Nov 6, 2019
1 parent 9ead5bb commit fee645e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ Category {
float fft = (tex2Dlod(_FFTTex, float4(pos.y,0,0,0)).b)*2 + .1;
dispVec.y += fft;
#endif
return dispVec * kDecimetersToWorldUnits;
// Allow scaling to affect particle speed and distance in toolkit
return dispVec * kDecimetersToWorldUnits * length(unity_ObjectToWorld[0].xyz);
}

v2f vert (ParticleVertexWithSpread_t v) {
Expand Down

0 comments on commit fee645e

Please sign in to comment.