mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 20:43:26 +02:00
experimental map shaders
This commit is contained in:
13
modules/game_shaders/shaders/party.frag
Normal file
13
modules/game_shaders/shaders/party.frag
Normal file
@@ -0,0 +1,13 @@
|
||||
uniform float u_Time;
|
||||
uniform sampler2D u_Tex0;
|
||||
varying vec2 v_TexCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 col = texture2D(u_Tex0, v_TexCoord);
|
||||
float d = u_Time * 2;
|
||||
col.x += (1.0 + sin(d))*0.25;
|
||||
col.y += (1.0 + sin(d*2))*0.25;
|
||||
col.z += (1.0 + sin(d*4))*0.25;
|
||||
gl_FragColor = col;
|
||||
}
|
Reference in New Issue
Block a user