diff options
author | aap <aap@papnet.eu> | 2020-11-19 19:07:32 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-11-19 19:07:32 +0100 |
commit | 07fe099b4e1fd877176f2b2947841ee82aa91ed0 (patch) | |
tree | b76756d54baef5a3ee506875c866cd8a5947242d /src/extras/shaders/screenDroplet.frag | |
parent | Merge branch 'miami' of github.com:GTAmodding/re3 into miami (diff) | |
download | re3-07fe099b4e1fd877176f2b2947841ee82aa91ed0.tar re3-07fe099b4e1fd877176f2b2947841ee82aa91ed0.tar.gz re3-07fe099b4e1fd877176f2b2947841ee82aa91ed0.tar.bz2 re3-07fe099b4e1fd877176f2b2947841ee82aa91ed0.tar.lz re3-07fe099b4e1fd877176f2b2947841ee82aa91ed0.tar.xz re3-07fe099b4e1fd877176f2b2947841ee82aa91ed0.tar.zst re3-07fe099b4e1fd877176f2b2947841ee82aa91ed0.zip |
Diffstat (limited to 'src/extras/shaders/screenDroplet.frag')
-rw-r--r-- | src/extras/shaders/screenDroplet.frag | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/extras/shaders/screenDroplet.frag b/src/extras/shaders/screenDroplet.frag new file mode 100644 index 00000000..84d30bd5 --- /dev/null +++ b/src/extras/shaders/screenDroplet.frag @@ -0,0 +1,18 @@ +uniform sampler2D tex0; +uniform sampler2D tex1; + +FSIN vec4 v_color; +FSIN vec2 v_tex0; +FSIN vec2 v_tex1; +FSIN float v_fog; + +void +main(void) +{ + vec4 color; + color = v_color*texture(tex0, vec2(v_tex0.x, 1.0-v_tex0.y)); + color *= texture(tex1, vec2(v_tex1.x, 1.0-v_tex1.y)); + + FRAGCOLOR(color); +} + |