Ejemplo n.º 1
0
        public void Update(GameObject parent, TimeSpan time, float sparam)
        {
            Effect.SParam = sparam;
            var world = Attachment.Transform * parent.GetTransform();

            Effect.Update(time, world.Transform(Vector3.Zero), world);
        }
Ejemplo n.º 2
0
        public void Update(GameObject parent, double time, float sparam)
        {
            Effect.SParam = sparam;
            var world = (Attachment?.Transform ?? Matrix4x4.Identity) * parent.WorldTransform;

            Effect.Update(time, Vector3.Transform(Vector3.Zero, world), world);
        }