mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
15 lines
348 B
Text
15 lines
348 B
Text
#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;
|
|
}
|