OpenGL gui working. Added sketch of the pheromone map. Added shaders.

This commit is contained in:
2016-06-26 02:20:29 -04:00
parent 6e21e87400
commit 87859fa044
17 changed files with 1723 additions and 28 deletions

9
shaders/basic.frag Normal file
View File

@@ -0,0 +1,9 @@
#version 120
uniform sampler2D sTexture;
void main(void) {
vec4 tex = texture2D(sTexture, gl_TexCoord[0].st);
gl_FragColor = clamp(tex, 0.0, 1.0);
//gl_FragColor = vec4(gl_TexCoord[0].s, gl_TexCoord[0].t, 0.0, 1.0);
}

6
shaders/basic.vert Normal file
View File

@@ -0,0 +1,6 @@
#version 120
void main() {
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = ftransform();
}