bgfx/3rdparty/glsl-optimizer/tests/fragment/framebuffer_fetch-inES.txt
2014-10-11 12:32:43 -07:00

21 lines
455 B
Plaintext

#extension GL_EXT_shader_framebuffer_fetch : require
struct v2f {
highp vec4 vertex;
lowp vec4 color;
};
void frag (in v2f i, inout lowp vec4 ocol)
{
ocol.xy = i.color.xy;
ocol.z *= 2.0;
}
varying lowp vec4 xlv_TEXCOORD0;
void main() {
v2f xlt_i;
xlt_i.vertex = vec4(0.0);
xlt_i.color = vec4(xlv_TEXCOORD0);
lowp vec4 xlt_ocol = vec4(gl_LastFragData[0]);
frag (xlt_i, xlt_ocol);
gl_FragData[0] = vec4(xlt_ocol);
}