chaos pt 1
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / point_map.h
index 5c674cd6fa5534327b448cc00c3822dad7cfaca5..006c98f93b28042b238f68468d12ab4f565a1400 100644 (file)
@@ -75,7 +75,7 @@ static struct vg_shader _shader_point_map = {
 "   vs_motion_out( vproj0, vproj1 );\n"
 "\n"
 "   gl_Position = vproj0;\n"
-"   gl_PointSize = (9.0*scaler) / (gl_Position.z + 0.01);\n"
+"   gl_PointSize = (9.0*scaler) / (max( gl_Position.z, 2.0 ));\n"
 "   aWorldCo = world_pos0;\n"
 "   aColour = a_colour*scaler*(1.0-uAnim.y*uAnim.y);\n"
 "   aCo = co;\n"