mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 05:41:52 +00:00
Make blob shadows respond to gamecode a bit more naturally.
This commit is contained in:
parent
f54b9b8459
commit
354fbb2a85
1 changed files with 2 additions and 2 deletions
|
@ -3231,7 +3231,7 @@ void CLQ1_AddShadow(entity_t *ent)
|
||||||
scenetris_t *t;
|
scenetris_t *t;
|
||||||
cl_adddecal_ctx_t ctx;
|
cl_adddecal_ctx_t ctx;
|
||||||
|
|
||||||
if (!r_blobshadows || !ent->model || (ent->model->type != mod_alias && ent->model->type != mod_halflife))
|
if (!r_blobshadows || !ent->model || (ent->model->type != mod_alias && ent->model->type != mod_halflife) || (ent->flags & RF_NOSHADOW))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
s = R_RegisterShader("shadowshader", SUF_NONE,
|
s = R_RegisterShader("shadowshader", SUF_NONE,
|
||||||
|
@ -3295,7 +3295,7 @@ void CLQ1_AddShadow(entity_t *ent)
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.t = t;
|
ctx.t = t;
|
||||||
Vector4Set(ctx.rgbavalue, 0, 0, 0, r_blobshadows);
|
Vector4Set(ctx.rgbavalue, 0, 0, 0, r_blobshadows*((ent->flags & RF_TRANSLUCENT)?ent->shaderRGBAf[3]:1));
|
||||||
Mod_ClipDecal(cl.worldmodel, shadoworg, ctx.axis[0], ctx.axis[1], ctx.axis[2], radius, 0,0, CL_AddDecal_Callback, &ctx);
|
Mod_ClipDecal(cl.worldmodel, shadoworg, ctx.axis[0], ctx.axis[1], ctx.axis[2], radius, 0,0, CL_AddDecal_Callback, &ctx);
|
||||||
if (!t->numidx)
|
if (!t->numidx)
|
||||||
cl_numstris--;
|
cl_numstris--;
|
||||||
|
|
Loading…
Reference in a new issue