public void Apply(CameraWrapper wrapper, Matrix4 mat) { Point3 p = new Point3(this.Location, mat); switch(this.ReferencePoint) { case CameraReferencePoint.Lookat: wrapper.Lookat = p; break; case CameraReferencePoint.Position: wrapper.Position = p; break; } }
public Tuple<List<RenderItem>, List<Light>> Inject(double time, CameraWrapper cw) { List<RenderItem> ris = new List<RenderItem>(); List<Light> lis = new List<Light>(); MatrixStack ms = new MatrixStack(); this.Root(time).Inject(this.versionDictionary, time, this.MaxDepth, ms, cw, ris, lis, 0x00); return new Tuple<List<RenderItem>, List<Light>>(ris, lis); }