Fix csqc polygon issue (using explicit glsl that doesn't need normals).
Added gl_texture_lodbias cvar for the luls. Fix some serious-but-situational traceline issues. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5402 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
3867760e75
commit
3250de5851
40 changed files with 2781 additions and 2475 deletions
|
@ -5,6 +5,8 @@
|
|||
//#pragma flag enable typeexplicit
|
||||
|
||||
#define CSQC
|
||||
#define _ACCESSORS
|
||||
#pragma target FTE
|
||||
csplat.qc
|
||||
csfixups.qc
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -268,14 +268,11 @@ void(entedit_t *nent) editor_ents_updated =
|
|||
|
||||
if (nent->isbsp)
|
||||
nent->ang = '0 0 0'; //bsp entities should not be displayed rotated, because that just messes everything up.
|
||||
|
||||
|
||||
nent->bboxverts[0].xyz = (vec3)((__variant)nent->org);
|
||||
nent->bboxverts[0].st = (vec2){0,0};
|
||||
nent->bboxverts[0].rgba = (vec4){nent->colourmod[0], nent->colourmod[1], nent->colourmod[2], nent->alpha?nent->alpha:1};
|
||||
nent->bboxverts[7] = nent->bboxverts[6] = nent->bboxverts[5] = nent->bboxverts[4] = nent->bboxverts[3] = nent->bboxverts[2] = nent->bboxverts[1] = nent->bboxverts[0];
|
||||
|
||||
for (i = 0; i < 8; i++)
|
||||
{
|
||||
nent->bboxverts[i].st = (vec2){0,0};
|
||||
nent->bboxverts[i].rgba = (vec4){nent->colourmod[0], nent->colourmod[1], nent->colourmod[2], nent->alpha?nent->alpha:1};
|
||||
nent->bboxverts[i].xyz[0] = nent->org[0] + ((i&1i)?nent->maxs[0]:nent->mins[0]);
|
||||
nent->bboxverts[i].xyz[1] = nent->org[1] + (((i&2i)?nent->maxs[1]:nent->mins[1]));
|
||||
nent->bboxverts[i].xyz[2] = nent->org[2] + ((i&4)?nent->maxs[2]:nent->mins[2]);
|
||||
|
|
|
@ -90,7 +90,7 @@ static string(int fld, float foredit) readfield =
|
|||
ret = strcat(ret, (fl & LFLAG_NOSHADOWS)?"c":"");
|
||||
ret = strcat(ret, (fl & LFLAG_SHADOWMAP)?"s":"");
|
||||
ret = strcat(ret, (fl & LFLAG_CREPUSCULAR)?"r":"");
|
||||
ret = strcat(ret, (fl & LFLAG_ORTHO)?"o":"");
|
||||
ret = strcat(ret, (fl & LFLAG_ORTHOSUN)?"o":"");
|
||||
return ret;
|
||||
case 6:
|
||||
return ftos(dynamiclight_get(selectedlight, LFIELD_STYLE));
|
||||
|
@ -142,7 +142,7 @@ static void(float fld, string newval) writefield =
|
|||
if (strstrofs(newval, "c")>=0) fl |= LFLAG_NOSHADOWS;
|
||||
if (strstrofs(newval, "s")>=0) fl |= LFLAG_SHADOWMAP;
|
||||
if (strstrofs(newval, "r")>=0) fl |= LFLAG_CREPUSCULAR;
|
||||
if (strstrofs(newval, "o")>=0) fl |= LFLAG_ORTHO;
|
||||
if (strstrofs(newval, "o")>=0) fl |= LFLAG_ORTHOSUN;
|
||||
dynamiclight_set(selectedlight, LFIELD_FLAGS, (float)fl);
|
||||
return;
|
||||
case 6:
|
||||
|
|
|
@ -449,7 +449,7 @@ void(vector mousepos) editor_terrain_addentities =
|
|||
float a;
|
||||
|
||||
if (curtool == ter_tex_paint || curtool == ter_tex_paint_single || curtool == ter_tex)
|
||||
terrain_edit(22, tex[painttex]);
|
||||
terrain_edit(TEREDIT_TEX_SETMASK, tex[painttex]);
|
||||
|
||||
if (mousepos_x < 128)
|
||||
return;
|
||||
|
@ -515,7 +515,7 @@ void(vector mousepos) editor_terrain_overlay =
|
|||
vector colour;
|
||||
|
||||
// if (curtool == ter_tex_paint || curtool == ter_tex_paint_single || curtool == ter_tex)
|
||||
terrain_edit(22, 0);
|
||||
terrain_edit(TEREDIT_TEX_SETMASK, 0);
|
||||
|
||||
float ctime = gettime(5);
|
||||
if (mautorepeattime)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue