Lines Matching refs:fragSrc
152 std::ostringstream fragSrc;
153 fragSrc << "#version 300 es\n";
154 fragSrc << "layout(location = 0) out mediump vec4 o_color;\n";
155 fragSrc << "in mediump vec2 v_coords;\n";
158 fragSrc << "uniform " << glu::getPrecisionName(samplerPrec) << " " << glu::getDataTypeName(samplerType) << " u_sampler" << texNdx << ";\n";
160 fragSrc << "void main (void)\n"
166 fragSrc << "\t" << glu::getPrecisionName(samplerPrec) << " vec4 r = ";
168 fragSrc << "\tr += ";
171 fragSrc << "vec4(";
173 fragSrc << "texture(u_sampler" << texNdx << ", v_coords)";
176 fragSrc << ")";
178 fragSrc << ";\n";
181 fragSrc << " o_color = r;\n"
184 m_fragShaderSource = fragSrc.str();