water fog material prop; ragdoll float only on drowned
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / cloud.vs
index 66a2bdf2a65d41089f6c7c9a01b0acee3f1e3057..580dc207c4c55a92297d104a44899679927366af 100644 (file)
@@ -46,7 +46,7 @@ void main()
    vs_motion_out( vproj0, vproj1 );
 
    gl_Position = vproj0;
-   gl_PointSize = (9.0*scaler) / (gl_Position.z + 0.01);
+   gl_PointSize = (9.0*scaler) / (max( gl_Position.z, 2.0 ));
    aWorldCo = world_pos0;
    aColour = a_colour*scaler*(1.0-uAnim.y*uAnim.y);
    aCo = co;