Skip to content

Commit

Permalink
Fix uninitialized texP and heightP in clouds_geo. Closes https://gith…
Browse files Browse the repository at this point in the history
  • Loading branch information
iceiix committed Nov 29, 2018
1 parent b91ef23 commit 26b1867
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/render/shaders/clouds_geo.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 26b1867

Please sign in to comment.