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

gpu_shader_3D_polyline_frag.glsl « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 27740c8d71bed49b33ba6bd986a36cbfa1be47f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma BLENDER_REQUIRE(gpu_shader_colorspace_lib.glsl)

void main()
{
#ifdef CLIP
  if (interp.clip < 0.0) {
    discard;
  }
#endif
  fragColor = interp.color;
  if (lineSmooth) {
    fragColor.a *= clamp((lineWidth + SMOOTH_WIDTH) * 0.5 - abs(interp.smoothline), 0.0, 1.0);
  }
  fragColor = blender_srgb_to_framebuffer_space(fragColor);
}