From bec4167d29a68efd0cd2da36143e7f1c78a119a0 Mon Sep 17 00:00:00 2001 From: xolatile Date: Sun, 10 Aug 2025 14:30:56 +0200 Subject: Cleared all warnings on GCC... --- data/glsl.cfg | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'data/glsl.cfg') diff --git a/data/glsl.cfg b/data/glsl.cfg index 3004d05..91e6e8e 100644 --- a/data/glsl.cfg +++ b/data/glsl.cfg @@ -2556,42 +2556,6 @@ lazyshader 0 "glassfast" [ fastshader glass glassfast 2 altshader glass glassfast -lazyshader 0 "grass" [ - attribute vec4 vvertex, vcolor; - attribute vec2 vtexcoord0, vtexcoord1; - attribute vec4 vtangent; - uniform mat4 camprojmatrix; - uniform vec3 camera; - uniform vec3 grassmargin; - varying vec4 color; - varying vec2 texcoord0, texcoord1; - varying vec2 bounds; - void main(void) - { - gl_Position = camprojmatrix * vvertex; - color = vcolor; - texcoord0 = vtexcoord0; - texcoord1 = vtexcoord1 * @lmcoordscale; - vec2 camdir = (camera.xy - vvertex.xy) * grassmargin.y; - bounds = vec2(dot(camdir, vtangent.xy), dot(camdir, vtangent.zw)) + grassmargin.z; - } -] [ - //:fogrgba vec4(0.0) - varying vec4 color; - varying vec2 texcoord0, texcoord1; - varying vec2 bounds; - uniform sampler2D tex0, tex1; - void main(void) - { - vec4 diffuse = texture2D(tex0, texcoord0); - diffuse.rgb *= 2.0; - vec4 lm = texture2D(tex1, texcoord1) * color; - lm.rgb *= lm.a; - float margin = clamp(min(bounds.x, bounds.y), 0.0, 1.0); - gl_FragColor = diffuse * lm * margin; - } -] - shader 0 "overbrightdecal" [ attribute vec4 vvertex, vcolor; attribute vec2 vtexcoord0; -- cgit v1.2.3