summaryrefslogtreecommitdiffstats
path: root/src/extras/shaders/leedsVehicle_mobile_vs_gl.inc
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-19 11:38:51 +0100
committeraap <aap@papnet.eu>2021-01-19 11:38:51 +0100
commit8baae4c77ff85e6fb1cacd428162804080998069 (patch)
tree63c90940449949019d601f09421e234d734aa576 /src/extras/shaders/leedsVehicle_mobile_vs_gl.inc
parentfix handbrake (diff)
downloadre3-8baae4c77ff85e6fb1cacd428162804080998069.tar
re3-8baae4c77ff85e6fb1cacd428162804080998069.tar.gz
re3-8baae4c77ff85e6fb1cacd428162804080998069.tar.bz2
re3-8baae4c77ff85e6fb1cacd428162804080998069.tar.lz
re3-8baae4c77ff85e6fb1cacd428162804080998069.tar.xz
re3-8baae4c77ff85e6fb1cacd428162804080998069.tar.zst
re3-8baae4c77ff85e6fb1cacd428162804080998069.zip
Diffstat (limited to 'src/extras/shaders/leedsVehicle_mobile_vs_gl.inc')
-rw-r--r--src/extras/shaders/leedsVehicle_mobile_vs_gl.inc42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/extras/shaders/leedsVehicle_mobile_vs_gl.inc b/src/extras/shaders/leedsVehicle_mobile_vs_gl.inc
deleted file mode 100644
index 3609e369..00000000
--- a/src/extras/shaders/leedsVehicle_mobile_vs_gl.inc
+++ /dev/null
@@ -1,42 +0,0 @@
-const char *leedsVehicle_mobile_vert_src =
-"uniform vec4 u_amb;\n"
-"uniform vec4 u_emiss;\n"
-
-"VSIN(ATTRIB_POS) vec3 in_pos;\n"
-
-"VSOUT vec4 v_color;\n"
-"VSOUT vec2 v_tex0;\n"
-"VSOUT vec2 v_tex1;\n"
-"VSOUT float v_fog;\n"
-"VSOUT vec2 v_reflData;\n"
-
-"#define v_NdotV (v_reflData.x)\n"
-"#define v_lightingCont (v_reflData.y)\n"
-
-"void\n"
-"main(void)\n"
-"{\n"
-" vec4 Vertex = u_world * vec4(in_pos, 1.0);\n"
-" gl_Position = u_proj * u_view * Vertex;\n"
-" vec3 Normal = mat3(u_world) * in_normal;\n"
-
-" v_tex0 = in_tex0;\n"
-
-" vec3 ViewNormal = mat3(u_view) * Normal;\n"
-" v_tex1 = (ViewNormal.xy + vec2(1.0, 1.0))*0.5;\n"
-
-" v_color = in_color;\n"
-" vec4 combinedAmbient = mix(u_emiss, u_amb, Normal.z);\n"
-" v_color.rgb += combinedAmbient.rgb*surfAmbient;\n"
-" v_color.rgb += DoDynamicLight(Vertex.xyz, Normal)*surfDiffuse;\n"
-" v_lightingCont = max(0.5, (v_color.r + v_color.g + v_color.b) / 3.0);\n"
-" v_color *= u_matColor;\n"
-
-" // for fresnel\n"
-" vec3 camPos = -u_view[3].xyz * mat3(u_view);\n"
-" vec3 viewVec = normalize(Vertex.xyz - camPos);\n"
-" v_NdotV = 1.0 - dot(-Normal.xyz, viewVec.xyz);\n"
-
-" v_fog = DoFog(gl_Position.w);\n"
-"}\n"
-;