Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
18 lines
305 B
GLSL
18 lines
305 B
GLSL
|
|
flat in vec4 finalColor;
|
|
out vec4 fragColor;
|
|
|
|
void main()
|
|
{
|
|
vec2 centered = gl_PointCoord - vec2(0.5);
|
|
float dist_squared = dot(centered, centered);
|
|
const float rad_squared = 0.25;
|
|
|
|
// round point with jaggy edges
|
|
if (dist_squared > rad_squared) {
|
|
discard;
|
|
}
|
|
|
|
fragColor = finalColor;
|
|
}
|