- 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
18
Gem/examples/12.multi_screen_projection/nfp_33.frag
Normal file
18
Gem/examples/12.multi_screen_projection/nfp_33.frag
Normal file
|
@ -0,0 +1,18 @@
|
|||
#extension GL_ARB_texture_rectangle : enable
|
||||
|
||||
uniform sampler2DRect MyTex;
|
||||
uniform float Sl,Sr,St,Sb; // shade size
|
||||
varying vec2 pos;
|
||||
|
||||
|
||||
void main (void)
|
||||
{
|
||||
vec4 color = texture2DRect(MyTex, gl_TexCoord[0].st);
|
||||
|
||||
color.a *=min(1.,pos.x/Sl);
|
||||
color.a *=min(1.,(1.-pos.x)/Sr);
|
||||
color.a *=min(1.,pos.y/St);
|
||||
color.a *=min(1.,(1.-pos.y)/Sb);
|
||||
|
||||
gl_FragColor = color;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue