Added tessellation evaluation shader frustum culling and pipeline stats for dynamic terrain tessellation example

This commit is contained in:
saschawillems 2016-06-23 22:01:48 +02:00
parent dbf80b217c
commit a9de176d12
7 changed files with 147 additions and 27 deletions

View file

@ -14,10 +14,10 @@ namespace vkTools
{
class Frustum
{
private:
public:
enum side { LEFT = 0, RIGHT = 1, TOP = 2, BOTTOM = 3, BACK = 4, FRONT = 5 };
std::array<glm::vec4, 6> planes;
public:
void update(glm::mat4 matrix)
{
planes[LEFT].x = matrix[0].w + matrix[0].x;