- Reestructuración de ficheros y directorios general
- merge v0.01 --> Añadido fileselector - Añadidas fuentes de Gem y Pure Data - pix2jpg incluído en Gem. Archivos de construcción de Gem modificados. - Añadido fichero ompiling.txt con instrucciones de compilación
This commit is contained in:
parent
c9adfd020b
commit
e85d191b46
3100 changed files with 775434 additions and 3073 deletions
16
Gem/examples/10.glsl/texture.frag
Normal file
16
Gem/examples/10.glsl/texture.frag
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Cyrille Henry 2007
|
||||
|
||||
//#extension GL_ARB_texture_rectangle : enable
|
||||
//uniform sampler2DRect MyTex;
|
||||
uniform sampler2D MyTex;
|
||||
uniform float B,C;
|
||||
|
||||
void main (void)
|
||||
{
|
||||
vec4 color = texture2D(MyTex, (gl_TextureMatrix[0] * gl_TexCoord[0]).st);
|
||||
|
||||
color *= B+1.; // brightness
|
||||
vec4 gray = vec4(dot(color.rgb,vec3(0.2125, 0.7154, 0.0721)));
|
||||
color = mix(gray, color, C+1.); // contrast
|
||||
gl_FragColor = color;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue