Beispiel #1
0
        public void SetCamera3DView(ICamera3D camera, Vector3 position, Vector3 lookAt, Vector3 up)
        {
            if (camera == null)
            {
                return;
            }

            _cameraManager.RetrieveCameraModel3D(camera.Id)?.SetCameraView(position, lookAt, up);
        }
Beispiel #2
0
        public void DispatchToRenderStage(IMeshRenderStageModel stage, CommandList cl, RenderCommandQueueItem command)
        {
            var surface = _surfaceManager.RetrieveSurface(command.Surface, new GpuSurfaceType[] { GpuSurfaceType.Texture, GpuSurfaceType.Internal });
            var source  = _surfaceManager.RetrieveSurface(command.Texture0, new GpuSurfaceType[] { GpuSurfaceType.SwapChainOutput, GpuSurfaceType.Internal });
            var camera  = _cameraManager.RetrieveCameraModel3D(command.Camera);

            _meshRenderer.Render(cl, stage, source, surface, camera);
        }