blob: 61895a607347ab6eedf381dcc31b23cb361f72a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#version 300 es
#define ALLOW_INCLUDES
#extension GL_ARB_shading_language_include : enable
#include "defines.h"
precision highp float;
in vec4 v_color;
#if USE_ROUNDING
uniform float radius;
uniform float roundingPower;
uniform vec2 topLeft;
uniform vec2 fullSize;
#include "rounding.glsl"
#endif
layout(location = 0) out vec4 fragColor;
void main() {
vec4 pixColor = v_color;
#if USE_ROUNDING
pixColor = rounding(pixColor, radius, roundingPower, topLeft, fullSize);
#endif
fragColor = pixColor;
}
|