From fee645ebfcb801ce7c5652c1d90eeb2a63f9cdab Mon Sep 17 00:00:00 2001 From: Paul Du Bois Date: Wed, 6 Nov 2019 13:07:15 -0800 Subject: [PATCH] Take mrlinds' suggestion in #40 Change-Id: Id000b0154052c9f6bbd526ddad06a94ccb14a92f --- .../Assets/TiltBrush/Assets/Brushes/Basic/Embers/Embers.shader | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UnitySDK/Assets/TiltBrush/Assets/Brushes/Basic/Embers/Embers.shader b/UnitySDK/Assets/TiltBrush/Assets/Brushes/Basic/Embers/Embers.shader index 56ec29bf..df69491b 100644 --- a/UnitySDK/Assets/TiltBrush/Assets/Brushes/Basic/Embers/Embers.shader +++ b/UnitySDK/Assets/TiltBrush/Assets/Brushes/Basic/Embers/Embers.shader @@ -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) {