bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-copyprop-struct-in.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

10 lines
139 B
Text

struct v2f {
float f;
};
varying float var;
void main() {
v2f i;
i.f = var;
v2f i2 = i;
gl_FragColor = vec4(abs(i2.f));
}