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:
16
modules/game_shaders/shaders/sepia.frag
Normal file
16
modules/game_shaders/shaders/sepia.frag
Normal file
@@ -0,0 +1,16 @@
|
||||
uniform float u_Time;
|
||||
uniform sampler2D u_Tex0;
|
||||
varying vec2 v_TexCoord;
|
||||
|
||||
vec4 sepia(vec4 color)
|
||||
{
|
||||
return vec4(dot(color, vec4(.393, .769, .189, .0)),
|
||||
dot(color, vec4(.349, .686, .168, .0)),
|
||||
dot(color, vec4(.272, .534, .131, .0)),
|
||||
1);
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = sepia(texture2D(u_Tex0, v_TexCoord));
|
||||
}
|
Reference in New Issue
Block a user