mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
begin implementing OpenGL 1.0 engine
* option to pass -opengl1 or -opengl2 as argument * note that with this commit there are a lot of graphics regressions and the master will remaing unstable for a while * shaders disabled for a while
This commit is contained in:
@@ -5,6 +5,7 @@ uniform sampler2D tex0; // map texture
|
||||
varying vec2 texCoord; // map texture coords
|
||||
//uniform vec4 awareArea;
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = texture2D(tex0, texCoord);
|
||||
@@ -83,4 +84,22 @@ void main()
|
||||
}
|
||||
gl_FragColor = color;
|
||||
}
|
||||
*/
|
||||
/*
|
||||
void main()
|
||||
{
|
||||
vec4 sum = vec4(0);
|
||||
vec2 texcoord = texCoord;
|
||||
int j;
|
||||
int i;
|
||||
|
||||
for( i= -4 ;i < 4; i++)
|
||||
{
|
||||
for (j = -4; j < 4; j++)
|
||||
{
|
||||
sum += texture2D(tex0, texcoord + vec2(j, i)*0.0025) * 0.0125;
|
||||
}
|
||||
}
|
||||
gl_FragColor = texture2D(tex0, texCoord) + sum;
|
||||
}
|
||||
*/
|
Reference in New Issue
Block a user