mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-22 04:01:33 +00:00
Cloaking effect really doesn't work in VR
This commit is contained in:
parent
549a583fc0
commit
b46da13606
1 changed files with 2 additions and 1 deletions
|
@ -4757,7 +4757,7 @@ void CG_AddRefEntityWithPowerups( refEntity_t *ent, int powerups, centity_t *cen
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (cg_renderToTextureFX.integer && cg_shadows.integer != 2 && cgs.glconfig.stencilBits >= 4)
|
/* if (cg_renderToTextureFX.integer && cg_shadows.integer != 2 && cgs.glconfig.stencilBits >= 4)
|
||||||
{
|
{
|
||||||
cgi_R_SetRefractProp(1.0f, 0.0f, qfalse, qfalse); //don't need to do this every frame.. but..
|
cgi_R_SetRefractProp(1.0f, 0.0f, qfalse, qfalse); //don't need to do this every frame.. but..
|
||||||
ent->customShader = 2; //crazy "refractive" shader
|
ent->customShader = 2; //crazy "refractive" shader
|
||||||
|
@ -4765,6 +4765,7 @@ void CG_AddRefEntityWithPowerups( refEntity_t *ent, int powerups, centity_t *cen
|
||||||
ent->customShader = 0;
|
ent->customShader = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
*/
|
||||||
{ //stencil buffer's in use, sorry
|
{ //stencil buffer's in use, sorry
|
||||||
ent->renderfx = 0;//&= ~(RF_RGB_TINT|RF_ALPHA_FADE);
|
ent->renderfx = 0;//&= ~(RF_RGB_TINT|RF_ALPHA_FADE);
|
||||||
ent->shaderRGBA[0] = ent->shaderRGBA[1] = ent->shaderRGBA[2] = ent->shaderRGBA[3] = 255;
|
ent->shaderRGBA[0] = ent->shaderRGBA[1] = ent->shaderRGBA[2] = ent->shaderRGBA[3] = 255;
|
||||||
|
|
Loading…
Reference in a new issue