share/hedgewars/Data/Shaders/water.fs
author Wuzzy <Wuzzy2@mail.ru>
Mon, 08 Apr 2019 17:59:38 +0200
changeset 14776 97a36fb44123
parent 12884 286e170f4f6b
permissions -rw-r--r--
WxW: Hide crate radar when no active hog
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12884
286e170f4f6b apparently this is GLES2 only
nemo
parents: 11800
diff changeset
     1
#ifdef GL_ES
11800
2028bd2a6c5b Set medium floating precision to shaders
frd
parents: 11317
diff changeset
     2
precision mediump float;
12884
286e170f4f6b apparently this is GLES2 only
nemo
parents: 11800
diff changeset
     3
#endif
8334
abb48dd39e26 Added shaders and -GL2 option
Michael Hartman <omh1280@gmail.com>
parents:
diff changeset
     4
abb48dd39e26 Added shaders and -GL2 option
Michael Hartman <omh1280@gmail.com>
parents:
diff changeset
     5
varying vec4 vcolor;
abb48dd39e26 Added shaders and -GL2 option
Michael Hartman <omh1280@gmail.com>
parents:
diff changeset
     6
abb48dd39e26 Added shaders and -GL2 option
Michael Hartman <omh1280@gmail.com>
parents:
diff changeset
     7
abb48dd39e26 Added shaders and -GL2 option
Michael Hartman <omh1280@gmail.com>
parents:
diff changeset
     8
void main()
abb48dd39e26 Added shaders and -GL2 option
Michael Hartman <omh1280@gmail.com>
parents:
diff changeset
     9
{
abb48dd39e26 Added shaders and -GL2 option
Michael Hartman <omh1280@gmail.com>
parents:
diff changeset
    10
    gl_FragColor = vcolor;
abb48dd39e26 Added shaders and -GL2 option
Michael Hartman <omh1280@gmail.com>
parents:
diff changeset
    11
}