Backlight fix
This commit is contained in:
parent
a9e8a7e355
commit
f9bb193e38
@ -130,7 +130,7 @@ void WorldRenderer::draw(const GfxContext& pctx, Camera* camera, bool occlusion)
|
|||||||
shader->use();
|
shader->use();
|
||||||
shader->uniformMatrix("u_proj", camera->getProjection());
|
shader->uniformMatrix("u_proj", camera->getProjection());
|
||||||
shader->uniformMatrix("u_view", camera->getView());
|
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_skyLightColor", vec3(1.1f) * skyLightMutliplier);
|
||||||
shader->uniform3f("u_fogColor", skyColor);
|
shader->uniform3f("u_fogColor", skyColor);
|
||||||
shader->uniform1f("u_fogFactor", fogFactor);
|
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, 0)+1),
|
||||||
min(15, Lightmap::extract(light, 1)+1),
|
min(15, Lightmap::extract(light, 1)+1),
|
||||||
min(15, Lightmap::extract(light, 2)+1),
|
min(15, Lightmap::extract(light, 2)+1),
|
||||||
min(15, Lightmap::extract(light, 3)+1)
|
min(15, Lightmap::extract(light, 3))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user