- 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
15
Gem/examples/10.glsl/multitexture_rect.frag
Normal file
15
Gem/examples/10.glsl/multitexture_rect.frag
Normal file
|
@ -0,0 +1,15 @@
|
|||
#extension GL_ARB_texture_rectangle : enable
|
||||
|
||||
uniform sampler2DRect MyTex;
|
||||
uniform sampler2DRect MyTex1;
|
||||
|
||||
varying vec2 texcoord1;
|
||||
varying vec2 texcoord2;
|
||||
|
||||
void main (void)
|
||||
{
|
||||
vec4 color = texture2DRect(MyTex, texcoord1);
|
||||
vec4 color2 = texture2DRect(MyTex1, texcoord1); // texcoord2 does not work.
|
||||
gl_FragColor = (color + color2) / 2.;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue