mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 11:05:36 -05:00
21 lines
455 B
Text
21 lines
455 B
Text
|
#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);
|
||
|
}
|