mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-12 17:21:08 -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);
|
|
}
|