adjusted number of steps used for curvature and fixed height jump
This commit is contained in:
parent
8da7185ead
commit
13a07850ac
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ void world_curvature() {
|
||||||
gl_Position.y -= 2 * z / worldRadius;
|
gl_Position.y -= 2 * z / worldRadius;
|
||||||
#elif worldCurvature == 2
|
#elif worldCurvature == 2
|
||||||
vec2 xz = gl_Position.xz;
|
vec2 xz = gl_Position.xz;
|
||||||
gl_Position.y -= ceil(( dot(xz, xz) * 5 ) / worldRadius) / 5;
|
gl_Position.y -= round(( dot(xz, xz) / worldRadius ) * 8) / 8;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue