Files
MapLibreParticleLab/shaders/drawable.background.fragment.glsl
Alex Cristici cca3adb375 Layer group uniforms (#2247)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-18 14:22:11 +03:00

13 lines
265 B
GLSL

layout (std140) uniform BackgroundLayerUBO {
highp vec4 u_color;
highp float u_opacity;
highp float layer_pad1, layer_pad2, layer_pad3;
};
void main() {
fragColor = u_color * u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor = vec4(1.0);
#endif
}