]> SALOME platform Git repositories - modules/gui.git/blob - src/VTKViewer/resources/Point.fs.glsl
Salome HOME
Upgrade to paraview 5.4
[modules/gui.git] / src / VTKViewer / resources / Point.fs.glsl
1 #version 130
2
3 #if (__VERSION__ >= 130)
4   out vec4 outColor;
5   #define Texture2D texture
6 #else
7   #define outColor gl_FragColor
8   #define Texture2D texture2D
9 #endif
10
11 uniform sampler2D uPointSprite;
12
13 in vec4 VSColor;
14 void main()
15 {
16   vec4 aColor = Texture2D(uPointSprite, gl_PointCoord) * VSColor;
17   if (aColor.a < 0.5)
18     discard;
19
20   outColor = aColor;
21 }