OpenGL gui working. Added sketch of the pheromone map. Added shaders.
This commit is contained in:
9
shaders/basic.frag
Normal file
9
shaders/basic.frag
Normal 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
6
shaders/basic.vert
Normal file
@@ -0,0 +1,6 @@
|
||||
#version 120
|
||||
|
||||
void main() {
|
||||
gl_TexCoord[0] = gl_MultiTexCoord0;
|
||||
gl_Position = ftransform();
|
||||
}
|
Reference in New Issue
Block a user