opengl: Updated water shader precision

This commit is contained in:
Michaël Lemaire 2016-01-13 17:49:42 +01:00
parent ba4433dfdd
commit c77e3d78b0

View file

@ -7,7 +7,7 @@ uniform float[4] waterNoise;
out vec4 final_color;
float getDetail(vec3 location) {
return max(min(pow(length(location - cameraLocation) * 0.002, 2.0), 0.01), 0.000001);
return max(min(pow(length(location - cameraLocation) * 0.001, 2.0), 0.01), 0.00002);
}
void main(void)