@@ -44,10 +44,9 @@ uniform float u_mode;
|
||||
void
|
||||
main(){
|
||||
if (u_mode >= 1.0) {
|
||||
|
||||
float step= 2.0;
|
||||
if (u_mode == 3.0){// dashed texture
|
||||
step =1.0;
|
||||
float step = 2.0;
|
||||
if (u_mode == 2.0) { // dashed texture
|
||||
step = 1.0;
|
||||
}
|
||||
vec4 c=texture2D(tex,vec2(abs(mod(v_st.s+1.0,step)),(v_st.t+1.0)*0.5));
|
||||
float fuzz=fwidth(c.a);
|
||||
|
||||
Reference in New Issue
Block a user