Added tessellation evaluation shader frustum culling and pipeline stats for dynamic terrain tessellation example
This commit is contained in:
parent
dbf80b217c
commit
a9de176d12
7 changed files with 147 additions and 27 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue