diff options
| author | xolatile | 2025-08-05 10:40:01 +0200 |
|---|---|---|
| committer | xolatile | 2025-08-05 10:40:01 +0200 |
| commit | a2a16b85572b1d28b0cd4901ea7348750732a740 (patch) | |
| tree | 6287cdf8331e821f9fe1e0adadc664a59634a812 /src/engine/rendergl.cpp | |
| parent | 6762e292d02e37a69a807e01493d4e14319cca33 (diff) | |
| download | xolatile-badassbug-a2a16b85572b1d28b0cd4901ea7348750732a740.tar.xz xolatile-badassbug-a2a16b85572b1d28b0cd4901ea7348750732a740.tar.zst | |
Few more changes, please do not compile...
Diffstat (limited to 'src/engine/rendergl.cpp')
| -rw-r--r-- | src/engine/rendergl.cpp | 66 |
1 files changed, 1 insertions, 65 deletions
diff --git a/src/engine/rendergl.cpp b/src/engine/rendergl.cpp index 6d3e705..ac05313 100644 --- a/src/engine/rendergl.cpp +++ b/src/engine/rendergl.cpp @@ -148,7 +148,6 @@ void *getprocaddress(const char *name) return SDL_GL_GetProcAddress(name); } -VARP(ati_skybox_bug, 0, 0, 1); VAR(ati_minmax_bug, 0, 0, 1); VAR(ati_cubemap_bug, 0, 0, 1); VAR(intel_vertexarray_bug, 0, 0, 1); @@ -396,8 +395,6 @@ void gl_checkextensions() extern int fpdepthfx; if(ati) { - //conoutf(CON_WARN, "WARNING: ATI cards may show garbage in skybox. (use \"/ati_skybox_bug 1\" to fix)"); - minimizetcusage = 1; if(hasTF && hasTRG) fpdepthfx = 1; // On Catalyst 10.2, issuing an occlusion query on the first draw using a given cubemap texture causes a nasty crash @@ -1035,7 +1032,7 @@ void hudquad(float x, float y, float w, float h, float tx, float ty, float tw, f HUDQUAD(x, y, x+w, y+h, tx, ty, tx+tw, ty+th); } -static float findsurface(int fogmat, const vec &v, int &abovemat) +static float findsurface(const vec &v, int &abovemat) { ivec o(v), co; int csize; @@ -1062,63 +1059,6 @@ void rendergame(bool mainpass) int drawtex = 0; -void drawcubemap(int size, const vec &o, float yaw, float pitch, const cubemapside &side, bool onlysky) -{ - drawtex = DRAWTEX_ENVMAP; - - physent *oldcamera = camera1; - static physent cmcamera; - cmcamera = *player; - cmcamera.reset(); - cmcamera.type = ENT_CAMERA; - cmcamera.o = o; - cmcamera.yaw = yaw; - cmcamera.pitch = pitch; - cmcamera.roll = 0; - camera1 = &cmcamera; - - int farplane = worldsize*2; - - projmatrix.perspective(90.0f, 1.0f, nearplane, farplane); - if(!side.flipx || !side.flipy) projmatrix.scalexy(!side.flipx ? -1 : 1, !side.flipy ? -1 : 1); - if(side.swapxy) - { - swap(projmatrix.a.x, projmatrix.a.y); - swap(projmatrix.b.x, projmatrix.b.y); - swap(projmatrix.c.x, projmatrix.c.y); - swap(projmatrix.d.x, projmatrix.d.y); - } - setcamprojmatrix(); - - xtravertsva = xtraverts = glde = gbatches = 0; - - visiblecubes(); - - if(onlysky) drawskybox(farplane, false, true); - else - { - glClear(GL_DEPTH_BUFFER_BIT); - - glEnable(GL_CULL_FACE); - glEnable(GL_DEPTH_TEST); - - if(limitsky()) drawskybox(farplane, true); - - rendergeom(); - - if(!limitsky()) drawskybox(farplane, false); - - rendermapmodels(); - renderalphageom(); - - glDisable(GL_DEPTH_TEST); - glDisable(GL_CULL_FACE); - } - - camera1 = oldcamera; - drawtex = 0; -} - VAR(modelpreviewfov, 10, 20, 100); VAR(modelpreviewpitch, -90, -15, 90); @@ -1236,15 +1176,11 @@ void gl_drawframe() if(wireframe && editmode) glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); - if(limitsky()) drawskybox(farplane, true); - rendergeom(); extern int outline; if(!wireframe && editmode && outline) renderoutline(); - if(!limitsky()) drawskybox(farplane, false); - renderdecals(true); rendermapmodels(); |
