mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 15:31:49 +00:00
increase moon sprite distance
This commit is contained in:
parent
ee21debe52
commit
4a15c21154
1 changed files with 5 additions and 5 deletions
|
|
@ -134,16 +134,16 @@ void Skybox::draw(
|
||||||
DrawContext ctx = pctx.sub();
|
DrawContext ctx = pctx.sub();
|
||||||
ctx.setBlendMode(BlendMode::addition);
|
ctx.setBlendMode(BlendMode::addition);
|
||||||
|
|
||||||
auto p_shader = assets.get<Shader>("ui3d");
|
auto shader = assets.get<Shader>("ui3d");
|
||||||
p_shader->use();
|
shader->use();
|
||||||
p_shader->uniformMatrix("u_projview", camera.getProjView(false));
|
shader->uniformMatrix("u_projview", camera.getProjView(false));
|
||||||
p_shader->uniformMatrix("u_apply", glm::mat4(1.0f));
|
shader->uniformMatrix("u_apply", glm::mat4(1.0f));
|
||||||
batch3d->begin();
|
batch3d->begin();
|
||||||
|
|
||||||
float angle = daytime * glm::pi<float>() * 2.0f;
|
float angle = daytime * glm::pi<float>() * 2.0f;
|
||||||
float opacity = glm::pow(1.0f - fog, 7.0f);
|
float opacity = glm::pow(1.0f - fog, 7.0f);
|
||||||
|
|
||||||
float depthScale = 1e3;
|
float depthScale = 2e3;
|
||||||
for (auto& sprite : sprites) {
|
for (auto& sprite : sprites) {
|
||||||
batch3d->texture(assets.get<Texture>(sprite.texture));
|
batch3d->texture(assets.get<Texture>(sprite.texture));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue