diff options
| author | xolatile | 2025-08-05 15:27:57 +0200 |
|---|---|---|
| committer | xolatile | 2025-08-05 15:27:57 +0200 |
| commit | 9234eeb1d2954a3dae6c84ffa8ed8643953272c5 (patch) | |
| tree | f2253bac389d743ba8582139901c782f7afde4cc /src/engine/3dgui.cpp | |
| parent | a2a16b85572b1d28b0cd4901ea7348750732a740 (diff) | |
| download | xolatile-badassbug-9234eeb1d2954a3dae6c84ffa8ed8643953272c5.tar.xz xolatile-badassbug-9234eeb1d2954a3dae6c84ffa8ed8643953272c5.tar.zst | |
Experimental MD3 to OBJ to IQM converter and code removal, shit compiles...
Diffstat (limited to 'src/engine/3dgui.cpp')
| -rw-r--r-- | src/engine/3dgui.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/engine/3dgui.cpp b/src/engine/3dgui.cpp index 41a5d47..1e17e78 100644 --- a/src/engine/3dgui.cpp +++ b/src/engine/3dgui.cpp @@ -683,13 +683,12 @@ struct gui : g3d_gui Slot &slot = *vslot.slot; if(slot.sts.empty()) return; VSlot *layer = NULL; - Texture *t = NULL, *glowtex = NULL, *layertex = NULL; + Texture *t = NULL, *layertex = NULL; if(slot.loaded) { t = slot.sts[0].t; if(t == notexture) return; Slot &slot = *vslot.slot; - if(slot.texmask&(1<<TEX_GLOW)) { loopvj(slot.sts) if(slot.sts[j].type==TEX_GLOW) { glowtex = slot.sts[j].t; break; } } if(vslot.layer) { layer = &lookupvslot(vslot.layer); @@ -729,20 +728,6 @@ struct gui : g3d_gui gle::attribf(x, y+ys); gle::attrib(tc[3]); gle::attribf(x+xs, y+ys); gle::attrib(tc[2]); gle::end(); - if(glowtex) - { - glBlendFunc(GL_SRC_ALPHA, GL_ONE); - glBindTexture(GL_TEXTURE_2D, glowtex->id); - if(hit || overlaid) gle::color(vec(vslot.glowcolor).mul(color)); - else gle::color(vslot.glowcolor); - gle::begin(GL_TRIANGLE_STRIP); - gle::attribf(x, y); gle::attrib(tc[0]); - gle::attribf(x+xs, y); gle::attrib(tc[1]); - gle::attribf(x, y+ys); gle::attrib(tc[3]); - gle::attribf(x+xs, y+ys); gle::attrib(tc[2]); - gle::end(); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - } if(layertex) { glBindTexture(GL_TEXTURE_2D, layertex->id); |
