Lines Matching refs:mShader
77 int id = mRS.nProgramFragmentCreate(mShader, texNames, tmp);
95 String mShader;
165 mShader = "//rs_shader_internal\n";
166 mShader += "varying lowp vec4 varColor;\n";
167 mShader += "varying vec2 varTex0;\n";
169 mShader += "void main() {\n";
171 mShader += " lowp vec4 col = varColor;\n";
173 mShader += " lowp vec4 col = UNI_Color;\n";
178 mShader += " vec2 t0 = gl_PointCoord;\n";
180 mShader += " vec2 t0 = varTex0.xy;\n";
189 mShader += " col.a = texture2D(UNI_Tex0, t0).a;\n";
192 mShader += " col.rgba = texture2D(UNI_Tex0, t0).rgba;\n";
195 mShader += " col.rgb = texture2D(UNI_Tex0, t0).rgb;\n";
198 mShader += " col.rgba = texture2D(UNI_Tex0, t0).rgba;\n";
205 mShader += " col.a *= texture2D(UNI_Tex0, t0).a;\n";
208 mShader += " col.rgba *= texture2D(UNI_Tex0, t0).rgba;\n";
211 mShader += " col.rgb *= texture2D(UNI_Tex0, t0).rgb;\n";
214 mShader += " col.rgba *= texture2D(UNI_Tex0, t0).rgba;\n";
219 mShader += " col = texture2D(UNI_Tex0, t0);\n";
224 mShader += " gl_FragColor = col;\n";
225 mShader += "}\n";
303 sb.setShader(mShader);