diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-02-10 08:01:53 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-02-10 08:01:53 +0100 |
commit | b6af7393e8494570de4bfa837ba2090c522b28bb (patch) | |
tree | aba068f1307a1a4e8c3d72adf69c0869f5c29f0e /src/extras/shaders/obj/neoWorldVC_frag.inc | |
parent | Controller menu (diff) | |
parent | fix clouds (diff) | |
download | re3-b6af7393e8494570de4bfa837ba2090c522b28bb.tar re3-b6af7393e8494570de4bfa837ba2090c522b28bb.tar.gz re3-b6af7393e8494570de4bfa837ba2090c522b28bb.tar.bz2 re3-b6af7393e8494570de4bfa837ba2090c522b28bb.tar.lz re3-b6af7393e8494570de4bfa837ba2090c522b28bb.tar.xz re3-b6af7393e8494570de4bfa837ba2090c522b28bb.tar.zst re3-b6af7393e8494570de4bfa837ba2090c522b28bb.zip |
Diffstat (limited to 'src/extras/shaders/obj/neoWorldVC_frag.inc')
-rw-r--r-- | src/extras/shaders/obj/neoWorldVC_frag.inc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/extras/shaders/obj/neoWorldVC_frag.inc b/src/extras/shaders/obj/neoWorldVC_frag.inc new file mode 100644 index 00000000..b4385fc7 --- /dev/null +++ b/src/extras/shaders/obj/neoWorldVC_frag.inc @@ -0,0 +1,28 @@ +const char *neoWorldVC_frag_src = +"uniform sampler2D tex0;\n" +"uniform sampler2D tex1;\n" + +"uniform vec4 u_lightMap;\n" + +"FSIN vec4 v_color;\n" +"FSIN vec2 v_tex0;\n" +"FSIN vec2 v_tex1;\n" +"FSIN float v_fog;\n" + +"void\n" +"main(void)\n" +"{\n" +" vec4 t0 = texture(tex0, vec2(v_tex0.x, 1.0-v_tex0.y));\n" +" vec4 t1 = texture(tex1, vec2(v_tex1.x, 1.0-v_tex1.y));\n" + +" vec4 color;\n" +" color = t0*v_color*(1.0 + u_lightMap*(t1-1.0));\n" +" color.a = v_color.a*t0.a*u_lightMap.a;\n" + +" color.rgb = mix(u_fogColor.rgb, color.rgb, v_fog);\n" +" DoAlphaTest(color.a);\n" + +" FRAGCOLOR(color);\n" +"}\n" + +; |