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
/
Background.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 int uUseTexture;
12
uniform sampler2D uBackgroundTexture;
13
14
in vec4 VSColor;
15
void main()
16
{
17
if (uUseTexture == 1)
18
outColor = Texture2D(uBackgroundTexture, VSColor.xy);
19
else
20
outColor = VSColor;
21
}