mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
add frustum culling to clouds segments
This commit is contained in:
parent
f0e5b54164
commit
7f98dcf919
2 changed files with 13 additions and 3 deletions
|
|
@ -9,6 +9,7 @@
|
|||
class Camera;
|
||||
class Shader;
|
||||
struct Weather;
|
||||
class Frustum;
|
||||
|
||||
class CloudsRenderer final {
|
||||
public:
|
||||
|
|
@ -33,8 +34,9 @@ private:
|
|||
std::array<Layer, 2> layers;
|
||||
|
||||
void draw(
|
||||
Shader& shader,
|
||||
Layer& layer,
|
||||
Frustum& frustum,
|
||||
Shader& shader,
|
||||
const Camera& camera,
|
||||
float timer,
|
||||
int layerId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue