Fix uninitialized texP and heightP in clouds_geo. Closes https://github.com/iceiix/steven/issues/32

This commit is contained in:
iceiix 2018-11-28 16:45:25 -08:00
parent b91ef23c20
commit 26b1867604
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ vec4 atlasTexture(vec2 tPos) {
return texture(textures, vec3(tPos, atlas));
}
ivec2 texP, heightP;
ivec2 texP = ivec2(0, 0);
ivec2 heightP = ivec2(0, 0);
bool isSolid(ivec2 pos) {
float height = texelFetch(cloudMap, ivec2(mod(heightP + pos, 512)), 0).r;