- 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/fetching.vert
Normal file
15
Gem/examples/10.glsl/fetching.vert
Normal file
|
@ -0,0 +1,15 @@
|
|||
uniform sampler2D MyTex;
|
||||
varying vec4 C;
|
||||
void main()
|
||||
{
|
||||
vec4 v = vec4(gl_Vertex);
|
||||
vec4 color = texture2D(MyTex, (gl_TextureMatrix[0] * gl_MultiTexCoord0).st);
|
||||
v.z = color.r;
|
||||
// v.x += (color.b-0.5)/2.;
|
||||
// v.y += (color.g-0.5)/2.;
|
||||
|
||||
C=color;
|
||||
gl_Position = gl_ModelViewProjectionMatrix * v;
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue