Fix off by one with clouds

This commit is contained in:
Thinkofname 2016-04-01 20:57:36 +01:00
parent 6527558916
commit c01c224fd9
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ bool isFutureSolid(ivec2 pos) {
void main() {
vec3 base = floor(offset) + gl_in[0].gl_Position.xyz;
texP = ivec2(gl_in[0].gl_Position.xz + 160.0 + offset.xz);
texP = ivec2(gl_in[0].gl_Position.xz + 160.0 + offset.xz) - ivec2(0.0, -1.0);
heightP = ivec2(mod(base.xz, 512));
if (!isSolid(ivec2(0))) return;