fix: particle trails draw in wrong transform

Close #145
This commit is contained in:
mob-sakai
2021-02-03 11:16:16 +09:00
parent ba3b80db7a
commit 17ce81eb0e

View File

@@ -241,7 +241,7 @@ namespace Coffee.UIExtensions
var hash = currentPs.GetMaterialHash(true); var hash = currentPs.GetMaterialHash(true);
if (hash != 0) if (hash != 0)
{ {
matrix = currentPs.main.simulationSpace == ParticleSystemSimulationSpace.Local matrix = currentPs.main.simulationSpace == ParticleSystemSimulationSpace.Local && currentPs.trails.worldSpace
? matrix * Matrix4x4.Translate(-currentPs.transform.position) ? matrix * Matrix4x4.Translate(-currentPs.transform.position)
: matrix; : matrix;