fix: Snapshot Interpolation Demo: assign material color to instanced material, fixes material asset changing color permanently

This commit is contained in:
vis2k 2022-06-13 18:18:59 +07:00
parent f92942bb5f
commit db50c39b91

View File

@ -84,7 +84,7 @@ void Update()
} }
// color material while catching up // color material while catching up
render.sharedMaterial.color = lastCatchup > 0 render.material.color = lastCatchup > 0
? catchupColor ? catchupColor
: defaultColor; : defaultColor;
} }