mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
17 lines
223 B
Text
17 lines
223 B
Text
#define FRAGMENT
|
|
|
|
#ifdef VERTEX
|
|
foo bar baz
|
|
#endif
|
|
|
|
#ifdef FRAGMENT
|
|
vec4 xlat_main () {
|
|
return vec4(1.0);
|
|
}
|
|
#endif
|
|
|
|
void main() {
|
|
vec4 xl_retval;
|
|
xl_retval = xlat_main();
|
|
gl_FragData[0] = vec4(xl_retval);
|
|
}
|