add PrecipitationRenderer (WIP)

This commit is contained in:
MihailRis 2025-01-12 22:32:41 +03:00
parent fd59aa4f65
commit b4456fdb51
10 changed files with 203 additions and 28 deletions

View file

@ -0,0 +1,32 @@
#pragma once
#include "typedefs.hpp"
class Level;
class Assets;
class Chunks;
class Camera;
class MainBatch;
struct GraphicsSettings;
class PrecipitationRenderer {
std::unique_ptr<MainBatch> batch;
const Level& level;
const Chunks& chunks;
const Assets& assets;
const GraphicsSettings* settings;
float timer = 0.0f;
int getHeightAt(int x, int z);
public:
PrecipitationRenderer(
const Assets& assets,
const Level& level,
const Chunks& chunks,
const GraphicsSettings* settings
);
~PrecipitationRenderer();
void render(const Camera& camera, float delta);
};