Cogs.Core
Public Types | List of all members
Cogs::CenterCalculationPolicy Struct Reference

Policies for determining the center of the clipmap. More...

#include <RenderContext.h>

Public Types

enum  ECenterCalculationPolicy { TerrainProjected , Projected , Vertical }
 

Detailed Description

Policies for determining the center of the clipmap.

Definition at line 34 of file RenderContext.h.

Member Enumeration Documentation

◆ ECenterCalculationPolicy

Enumerator
TerrainProjected 

Find the projected center of the screen on the terrain and center the clipmap on these coordinates.

This requires readback from the buffer used to store terrain depth, and can be very expensive in some cases.

It provides a natural focal point for the clipmap to center on, and is therefore the default method selected.

Projected 

Project the lower center of the screen onto the XY-plane and center the clipmap on these coordinates.

Vertical 

Project the camera coordinates onto the XY-plane and center the clipmap on these coordinates.

Definition at line 36 of file RenderContext.h.


The documentation for this struct was generated from the following file: