Home | History | Annotate | Download | only in RenderEngine

Lines Matching refs:fs

124     Formatter fs;
126 fs << "#extension GL_OES_EGL_image_external : require";
130 fs << "precision mediump float;";
133 fs << "uniform samplerExternalOES sampler;"
136 fs << "uniform sampler2D sampler;"
139 fs << "uniform vec4 color;";
142 fs << "uniform float alphaPlane;";
145 fs << "uniform mat4 colorMatrix;";
147 fs << "void main(void) {" << indent;
149 fs << "gl_FragColor = texture2D(sampler, outTexCoords);";
151 fs << "gl_FragColor = color;";
154 fs << "gl_FragColor.a = 1.0;";
160 fs << "gl_FragColor *= alphaPlane;";
162 fs << "gl_FragColor.a *= alphaPlane;";
169 fs << "gl_FragColor.rgb = gl_FragColor.rgb/gl_FragColor.a;";
171 fs << "gl_FragColor.rgb = pow(gl_FragColor.rgb, vec3(2.2));";
172 fs << "gl_FragColor = colorMatrix*gl_FragColor;";
173 fs << "gl_FragColor.rgb = pow(gl_FragColor.rgb, vec3(1.0 / 2.2));";
176 fs << "gl_FragColor.rgb = gl_FragColor.rgb*gl_FragColor.a;";
180 fs << dedent << "}";
181 return fs.getString();
189 String8 fs = generateFragmentShader(needs);
191 Program* program = new Program(needs, vs.string(), fs.string());