Fix uninitialized texP and heightP in clouds_geo. Closes https://github.com/iceiix/steven/issues/32
This commit is contained in:
parent
b91ef23c20
commit
26b1867604
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue