diff options
| author | xolatile | 2025-08-10 14:30:56 +0200 |
|---|---|---|
| committer | xolatile | 2025-08-10 14:30:56 +0200 |
| commit | bec4167d29a68efd0cd2da36143e7f1c78a119a0 (patch) | |
| tree | f5f75c25e412b000850c4e466db94ee4b804dfa2 /data | |
| parent | 757096e7df15c14b9b10352fa91663483f9e34f8 (diff) | |
| download | xolatile-badassbug-bec4167d29a68efd0cd2da36143e7f1c78a119a0.tar.xz xolatile-badassbug-bec4167d29a68efd0cd2da36143e7f1c78a119a0.tar.zst | |
Cleared all warnings on GCC...
Diffstat (limited to 'data')
| -rw-r--r-- | data/glsl.cfg | 36 | ||||
| -rw-r--r-- | data/stdedit.cfg | 16 |
2 files changed, 0 insertions, 52 deletions
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 ] |
