diff options
author | majestic <majesticcoding@gmail.com> | 2021-01-10 14:43:26 +0100 |
---|---|---|
committer | majestic <majesticcoding@gmail.com> | 2021-01-10 14:43:26 +0100 |
commit | 5256f1c967aa9ffed087752ecacc01d75e6267a7 (patch) | |
tree | 3806b6059c89fd902432c9309e3ca6dd689c92d2 /src | |
parent | Merge branch 'lcs' of https://github.com/GTAmodding/re3 into lcs (diff) | |
parent | env map tweaks (diff) | |
download | re3-5256f1c967aa9ffed087752ecacc01d75e6267a7.tar re3-5256f1c967aa9ffed087752ecacc01d75e6267a7.tar.gz re3-5256f1c967aa9ffed087752ecacc01d75e6267a7.tar.bz2 re3-5256f1c967aa9ffed087752ecacc01d75e6267a7.tar.lz re3-5256f1c967aa9ffed087752ecacc01d75e6267a7.tar.xz re3-5256f1c967aa9ffed087752ecacc01d75e6267a7.tar.zst re3-5256f1c967aa9ffed087752ecacc01d75e6267a7.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/re3.cpp | 2 | ||||
-rw-r--r-- | src/extras/custompipes.cpp | 2 | ||||
-rw-r--r-- | src/render/Renderer.cpp | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp index 65bb61b4..53a4396d 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -647,6 +647,8 @@ extern bool gbRenderWorld2; 1, CustomPipes::VEHICLEPIPE_MATFX, CustomPipes::VEHICLEPIPE_NEO, vehpipenames); DebugMenuEntrySetWrap(e, true); DebugMenuAddVarBool8("Render", "Chrome cheat", &CustomPipes::bChromeCheat, nil); +extern bool gbRenderDebugEnvMap; + DebugMenuAddVarBool8("Render", "Show Env map", &gbRenderDebugEnvMap, nil); DebugMenuAddVar("Render", "Neo Vehicle Shininess", &CustomPipes::VehicleShininess, nil, 0.1f, 0, 1.0f); DebugMenuAddVar("Render", "Neo Vehicle Specularity", &CustomPipes::VehicleSpecularity, nil, 0.1f, 0, 1.0f); DebugMenuAddVarBool8("Render", "Neo Ped Rim light enable", &CustomPipes::RimlightEnable, nil); diff --git a/src/extras/custompipes.cpp b/src/extras/custompipes.cpp index f7f8bbe5..379e7c8a 100644 --- a/src/extras/custompipes.cpp +++ b/src/extras/custompipes.cpp @@ -48,7 +48,7 @@ rw::TexDictionary *neoTxd; bool bChromeCheat; bool bRenderingEnvMap; -int32 EnvMapSize = 128; +int32 EnvMapSize = 256; rw::Camera *EnvMapCam; rw::Texture *EnvMapTex; rw::Texture *EnvMaskTex; diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 3065027b..9ed556e4 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1809,6 +1809,7 @@ CRenderer::GenerateEnvironmentMap(void) RwRenderStateSet(rwRENDERSTATEZTESTENABLE, (void*)FALSE); RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void*)FALSE); RwRenderStateSet(rwRENDERSTATETEXTURERASTER, CPostFX::pBackBuffer); + RwRenderStateSet(rwRENDERSTATETEXTUREFILTER, (void*)rwFILTERLINEAR); RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void*)FALSE); RwIm2DRenderIndexedPrimitive(rwPRIMTYPETRILIST, Screen2EnvQuad, 4, EnvQuadIndices, 6); RwRenderStateSet(rwRENDERSTATEZTESTENABLE, (void*)TRUE); |