Ecere Software
/
sdk
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ecere/gfx/drivers/OpenGL: Shaders support improvements
[sdk]
/
ecere
/
src
/
gfx
/
drivers
/
gl3
/
fixed.frag
1
#version 150
2
3
uniform sampler2D diffuseTex;
4
uniform bool texturingOn;
5
uniform mat4 texture_matrix;
6
7
in vec2 fTexCoord;
8
in vec4 fColor;
9
10
out vec4 fragColor;
11
12
void main(void)
13
{
14
fragColor = texturingOn ? fColor * texture(diffuseTex, (vec4(fTexCoord, 0, 1) * texture_matrix).xy) : fColor;
15
}