mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
reduce the offset of clouds on the horizon
This commit is contained in:
parent
9ad83a695c
commit
4b831f884e
@ -60,7 +60,7 @@ vec3 wpos_at(vec2 uv) {
|
|||||||
view_space /= view_space.w;
|
view_space /= view_space.w;
|
||||||
if (buf_depth == 0.0) {
|
if (buf_depth == 0.0) {
|
||||||
vec3 direction = normalize(view_space.xyz);
|
vec3 direction = normalize(view_space.xyz);
|
||||||
return direction.xyz * 524288.0625 + cam_pos.xyz;
|
return direction.xyz * 524288.0625;
|
||||||
} else {
|
} else {
|
||||||
return view_space.xyz;
|
return view_space.xyz;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user