bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-copyprop-struct-in.txt

11 lines
139 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
struct v2f {
float f;
};
varying float var;
void main() {
v2f i;
i.f = var;
v2f i2 = i;
gl_FragColor = vec4(abs(i2.f));
}