Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gpencil_edit_point_frag.glsl « shaders « gpencil « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b3bd8e488f20a5af61a1ebbcaae4ba9ea84b578c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
in vec4 mColor;
in vec2 mTexCoord;
out vec4 fragColor;

void main()
{
	vec2 centered = mTexCoord - 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 = mColor;
}