public override void Update(double time, Vector3 position, Matrix4x4 transform) { if (fx == null) { return; } pos = position; dist = Vector3.DistanceSquared(position, cameraPos); if (Active && dist < CULL) { tr = transform; fx.Update(time, transform, SParam); fx.DrawIndex = Index; if (fx.IsFinished()) { Finished = true; } } }