Skip to content
Browse files

Removes implicit cast from int to float in the chunk fragment shader.

  • Loading branch information...
1 parent e6c6fbc commit 4508b11da7c1af4ca97e5268ac9e7fcdd66edcb4 @begla begla committed Aug 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/resources/org/terasology/data/shaders/chunk_frag.glsl
View
2 src/main/resources/org/terasology/data/shaders/chunk_frag.glsl
@@ -60,7 +60,7 @@ uniform vec2 grassCoordinate;
#define WATER_REFRACTION 0.1
void main(){
- if (clipHeight > 0 && vertexWorldPosRaw.y < clipHeight) {
+ if (clipHeight > 0.0 && vertexWorldPosRaw.y < clipHeight) {
discard;
}

0 comments on commit 4508b11

Please sign in to comment.
Something went wrong with that request. Please try again.