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