Skip to content

Commit fee645e

Browse files
committed
Take mrlinds' suggestion in #40
Change-Id: Id000b0154052c9f6bbd526ddad06a94ccb14a92f
1 parent 9ead5bb commit fee645e

File tree

1 file changed

+2
-1
lines changed
  • UnitySDK/Assets/TiltBrush/Assets/Brushes/Basic/Embers

1 file changed

+2
-1
lines changed

UnitySDK/Assets/TiltBrush/Assets/Brushes/Basic/Embers/Embers.shader

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ Category {
8282
float fft = (tex2Dlod(_FFTTex, float4(pos.y,0,0,0)).b)*2 + .1;
8383
dispVec.y += fft;
8484
#endif
85-
return dispVec * kDecimetersToWorldUnits;
85+
// Allow scaling to affect particle speed and distance in toolkit
86+
return dispVec * kDecimetersToWorldUnits * length(unity_ObjectToWorld[0].xyz);
8687
}
8788

8889
v2f vert (ParticleVertexWithSpread_t v) {

0 commit comments

Comments
 (0)