From 917e9e0b320775634dc2e710f7deac74fd0822f0 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 22 Oct 2020 23:30:02 +0800 Subject: * amplify shader editor --- Assets/Scripts/Effects/CharacterGhostEffect.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Assets/Scripts/Effects') diff --git a/Assets/Scripts/Effects/CharacterGhostEffect.cs b/Assets/Scripts/Effects/CharacterGhostEffect.cs index d40adc17..d422c0a7 100644 --- a/Assets/Scripts/Effects/CharacterGhostEffect.cs +++ b/Assets/Scripts/Effects/CharacterGhostEffect.cs @@ -103,7 +103,7 @@ public class CharacterGhostEffect : EffectHandler if (SubmeshShareMaterial) material = Materials[0]; else - material = Materials[j]; + material = Materials[j - start]; Graphics.DrawMesh(ghost.mesh, ghost.matrix, material, gameObject.layer, null, j); } } -- cgit v1.1-26-g67d0