mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
improve u_gamma support & update default dense-render-distance value
This commit is contained in:
parent
6d88b7c3d1
commit
705e398bc3
4 changed files with 5 additions and 2 deletions
|
|
@ -29,6 +29,8 @@ vec4 effect() {
|
|||
|
||||
light = max(light, emission);
|
||||
|
||||
light = pow(light, u_gamma);
|
||||
|
||||
vec3 fogColor = texture(u_skybox, dir).rgb;
|
||||
float fog = calc_fog(length(u_view * vec4((modelpos.xyz - u_cameraPos) * FOG_POS_SCALE, 0.0)) / 256.0);
|
||||
return vec4(mix(texture(u_screen, v_uv).rgb * mix(1.0, light, 1.0), fogColor, fog), 1.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue