Salome HOME
projects
/
modules
/
gui.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge remote-tracking branch 'origin/rnv/vtk_opengl2_backend' into V8_1_BR
[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
}