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

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

#if __VERSION__ == 120
  flat varying vec4 finalColor;
  #define fragColor gl_FragColor
#else
  flat in vec4 finalColor;
  out vec4 fragColor;
#endif

void main()
{
	if (finalColor.a > 0.0)
		fragColor = finalColor;
	else
		discard;
}