mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Backlight fix
This commit is contained in:
parent
a9e8a7e355
commit
f9bb193e38
2 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ void WorldRenderer::draw(const GfxContext& pctx, Camera* camera, bool occlusion)
|
|||
shader->use();
|
||||
shader->uniformMatrix("u_proj", camera->getProjection());
|
||||
shader->uniformMatrix("u_view", camera->getView());
|
||||
shader->uniform1f("u_gamma", 1.6f);
|
||||
shader->uniform1f("u_gamma", 1.0f);
|
||||
shader->uniform3f("u_skyLightColor", vec3(1.1f) * skyLightMutliplier);
|
||||
shader->uniform3f("u_fogColor", skyColor);
|
||||
shader->uniform1f("u_fogFactor", fogFactor);
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ void ChunksStorage::getVoxels(VoxelsVolume* volume, bool backlight) const {
|
|||
min(15, Lightmap::extract(light, 0)+1),
|
||||
min(15, Lightmap::extract(light, 1)+1),
|
||||
min(15, Lightmap::extract(light, 2)+1),
|
||||
min(15, Lightmap::extract(light, 3)+1)
|
||||
min(15, Lightmap::extract(light, 3))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue