Cloaking effect really doesn't work in VR

This commit is contained in:
Simon 2023-08-03 07:47:09 +01:00
parent 549a583fc0
commit b46da13606

View file

@ -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;