From b46da1360649b57f7c59dd32e431f1f8cad04e17 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 3 Aug 2023 07:47:09 +0100 Subject: [PATCH] Cloaking effect really doesn't work in VR --- Projects/Android/jni/OpenJK/code/cgame/cg_players.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Projects/Android/jni/OpenJK/code/cgame/cg_players.cpp b/Projects/Android/jni/OpenJK/code/cgame/cg_players.cpp index dd2618b..fcf4d1f 100644 --- a/Projects/Android/jni/OpenJK/code/cgame/cg_players.cpp +++ b/Projects/Android/jni/OpenJK/code/cgame/cg_players.cpp @@ -4757,7 +4757,7 @@ void CG_AddRefEntityWithPowerups( refEntity_t *ent, int powerups, centity_t *cen } 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.. ent->customShader = 2; //crazy "refractive" shader @@ -4765,6 +4765,7 @@ void CG_AddRefEntityWithPowerups( refEntity_t *ent, int powerups, centity_t *cen ent->customShader = 0; } else +*/ { //stencil buffer's in use, sorry ent->renderfx = 0;//&= ~(RF_RGB_TINT|RF_ALPHA_FADE); ent->shaderRGBA[0] = ent->shaderRGBA[1] = ent->shaderRGBA[2] = ent->shaderRGBA[3] = 255;