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 ------------------------------------ data/stdedit.cfg | 16 ---------------- 2 files changed, 52 deletions(-) (limited to 'data') 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; diff --git a/data/stdedit.cfg b/data/stdedit.cfg index 6a13f5f..55863e1 100644 --- a/data/stdedit.cfg +++ b/data/stdedit.cfg @@ -136,22 +136,6 @@ entfindinsel = [ ] ] -lse = [ - line = "" - count = 0 - entloop [ - line = ( concatword $line (entget) " " ) - count = ( + $count 1 ) - if (> $count 4) [ - echo $line - line = "" - count = 0 - ] - ] - if (> $count 0 ) [ echo $line ] - echo (enthavesel) entities selected -] - drag = [ dragging 1; onrelease [ dragging 0 ] ] corners = [ selectcorners 1; dragging 1; onrelease [ selectcorners 0; dragging 0 ] ] editmove = [ moving 1; onrelease [ moving 0 ]; result $moving ] -- cgit v1.2.3