mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
refactor world renderer a bit
This commit is contained in:
parent
b69c92b330
commit
5380bcf013
13 changed files with 257 additions and 203 deletions
|
|
@ -90,11 +90,13 @@ static UVRegion calc_uv(
|
|||
return {u1, v1, u1 + m * scale, v1 + FACE_SIZE.y * scale};
|
||||
}
|
||||
|
||||
void PrecipitationRenderer::render(
|
||||
const Camera& camera, float delta, const WeatherPreset& weather
|
||||
) {
|
||||
void PrecipitationRenderer::update(float delta) {
|
||||
timer += delta;
|
||||
}
|
||||
|
||||
void PrecipitationRenderer::render(
|
||||
const Camera& camera, const WeatherPreset& weather
|
||||
) {
|
||||
const int radius = 6;
|
||||
const int depth = 12;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue