2017-11-22 11:08:06 +00:00
|
|
|
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
precision highp int;
|
|
|
|
|
|
|
|
struct Foo
|
|
|
|
{
|
|
|
|
float var1;
|
|
|
|
float var2;
|
|
|
|
};
|
|
|
|
|
2022-11-09 04:04:36 +00:00
|
|
|
Foo _22;
|
|
|
|
|
2017-11-22 11:08:06 +00:00
|
|
|
layout(binding = 0) uniform mediump sampler2D uSampler;
|
|
|
|
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
FragColor = texture(uSampler, vec2(_22.var1, _22.var2));
|
|
|
|
}
|
|
|
|
|