disable special 'thin-line' rendering again

This commit is contained in:
Hannes Janetzek 2013-10-06 20:52:22 +02:00
parent 0762e13c0f
commit 0ae1f99269

View File

@ -841,7 +841,7 @@ public final class LineLayer extends RenderElement {
+ " len = abs(v_st.s);" + " len = abs(v_st.s);"
+ " }" + " }"
// u_mode == 0.0 -> thin line // u_mode == 0.0 -> thin line
+ " len = len * clamp(u_mode, len, 1.0);" //+ " len = len * clamp(u_mode, len, 1.0);"
// use 'max' to avoid branching, need to check performance // use 'max' to avoid branching, need to check performance
//+ (GLAdapter.GDX_DESKTOP_QUIRKS //+ (GLAdapter.GDX_DESKTOP_QUIRKS
@ -884,7 +884,8 @@ public final class LineLayer extends RenderElement {
+ " fuzz = fwidth(v_st.s);" + " fuzz = fwidth(v_st.s);"
+ " }" + " }"
// u_mode == 0.0 -> thin line // u_mode == 0.0 -> thin line
+ " len = len * clamp(u_mode, len, 1.0);" //+ " len = len * clamp(u_mode, len, 1.0);"
+ " if (fuzz > 2.0)" + " if (fuzz > 2.0)"
+ " gl_FragColor = u_color * 0.5;" //vec4(1.0, 1.0, 1.0, 1.0);" + " gl_FragColor = u_color * 0.5;" //vec4(1.0, 1.0, 1.0, 1.0);"
+ " else" + " else"