public Base3DDeferredObjectInstance(Game game, Vector3 position, Vector3 scale, Quaternion rotation, ref Base3DDeferredObjectlInstancer instancer) : base(game) { Position = position; Scale = scale; Rotation = rotation; Instancer = instancer; Instancer.instanceTransformMatrices.Add(this, new InstanceVertex() { TransformMatrix = World, Extras = MyExtras }); Instancer.Instances.Add(Instancer.Instances.Count, this); this.Update(null); }
public Base3DDeferredObjectInstance(Game game, Vector3 position, Vector3 scale, Quaternion rotation, Vector4 extras, ref Base3DDeferredObjectlInstancer instancer) : this(game, position, scale, rotation, ref instancer) { MyExtras = extras; }