bgfx/3rdparty/glsl-optimizer/tests/fragment/mrt-unused-inES3.txt

16 lines
348 B
Plaintext
Raw Normal View History

2014-10-11 23:32:43 +04:00
#version 300 es
// Defines output as an array of 4 colors,
// but writes to only one.
#define gl_FragColor _glesFragData[0]
#define gl_FragData _glesFragData
layout(location = 0) out mediump vec4 _glesFragData[4];
uniform highp vec4 _Color;
in lowp vec4 xlv_COLOR0;
void main() {
lowp vec4 c = xlv_COLOR0 * _Color;
gl_FragData[0] = c;
}