working
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
#include "ThreadPool.h"
|
||||
#include "ThreadPool.h"
|
||||
#include <glm/gtc/matrix_access.hpp>
|
||||
|
||||
|
||||
// Forward declarations
|
||||
@@ -80,6 +81,10 @@ private:
|
||||
std::unordered_map<Primitive*, std::vector<glm::mat4>>& outBatches
|
||||
);
|
||||
|
||||
static bool CullSphere(const glm::mat4& vp,
|
||||
const glm::vec3& center,
|
||||
float radius);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -177,4 +182,4 @@ private:
|
||||
glm::vec3 position_;
|
||||
glm::vec3 rotation_;
|
||||
glm::vec3 scale_{1.0f};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user