mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
add PrecipitationRenderer (WIP)
This commit is contained in:
parent
fd59aa4f65
commit
b4456fdb51
10 changed files with 203 additions and 28 deletions
32
src/graphics/render/PrecipitationRenderer.hpp
Normal file
32
src/graphics/render/PrecipitationRenderer.hpp
Normal 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);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue