mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Minor fixes to LoD merging
This commit is contained in:
parent
7b42aebd70
commit
58587b6854
@ -33,7 +33,6 @@ void main() {
|
||||
f_pos = (
|
||||
combined_mat *
|
||||
vec4(v_pos, 1)).xyz;
|
||||
f_pos.z -= 1.0 * pow(distance(focus_pos.xy, f_pos.xy) / (view_distance.x * 0.95), 20.0);
|
||||
|
||||
f_col = v_col;
|
||||
|
||||
|
@ -8,7 +8,7 @@ vec2 pos_to_uv(vec2 pos) {
|
||||
}
|
||||
|
||||
float alt_at(vec2 pos) {
|
||||
return texture(t_map, pos_to_uv(pos)).a * (1310.0) + 140.0;
|
||||
return texture(t_map, pos_to_uv(pos)).a * (1300.0) + 140.0;
|
||||
|
||||
return 0.0
|
||||
+ pow(texture(t_noise, pos * 0.00005).x * 1.4, 3.0) * 1000.0
|
||||
|
@ -17,7 +17,7 @@ out float f_light;
|
||||
void main() {
|
||||
f_pos = lod_pos(v_pos + vec2(0, -v_pos.x * 0.5));
|
||||
|
||||
f_pos.z -= min(32.0, 1.0 / pow(distance(focus_pos.xy, f_pos.xy) / (view_distance.x * 0.95), 20.0));
|
||||
f_pos.z -= 1.0 / pow(distance(focus_pos.xy, f_pos.xy) / (view_distance.x * 0.95), 20.0);
|
||||
|
||||
f_light = 1.0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user