mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 17:18:12 -05:00
23 lines
381 B
Text
23 lines
381 B
Text
precision highp float;
|
|
precision lowp int;
|
|
|
|
struct MyStruct {
|
|
float f;
|
|
int i;
|
|
};
|
|
uniform MyStruct s1;
|
|
|
|
uniform float fh1;
|
|
uniform highp float fh2;
|
|
uniform mediump float fm;
|
|
|
|
uniform int il1;
|
|
uniform lowp int il2;
|
|
uniform mediump int im;
|
|
|
|
|
|
void main() {
|
|
lowp float f = fh1 + fh2 + fm + s1.f;
|
|
highp int i = il1 + il2 + im + s1.i;
|
|
gl_FragColor = vec4(f, i, 0.0, 0.0);
|
|
}
|