mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
12 lines
154 B
Text
12 lines
154 B
Text
|
struct foo {
|
||
|
float used;
|
||
|
float unused;
|
||
|
};
|
||
|
void main() {
|
||
|
float f = 1.0;
|
||
|
foo s;
|
||
|
s.used = f;
|
||
|
s.unused = f;
|
||
|
gl_FragColor = vec4(s.used);
|
||
|
}
|