Skip to content

Commit 5d5b7ac

Browse files
committed
NUKE unused refractionMap/dispersionMap
These were in XreaL, but never actually used on any map. We also don't even have them implemented properly (whatever that should even mean in this context), and neither did XreaL (there's some refractionMap code there that is #ifdef'd out, and dispersionMap is not used at all).
1 parent 705d6e1 commit 5d5b7ac

8 files changed

Lines changed: 0 additions & 327 deletions

File tree

src.cmake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ set(GLSLSOURCELIST
169169
${ENGINE_DIR}/renderer/glsl_source/depthtile1_vp.glsl
170170
${ENGINE_DIR}/renderer/glsl_source/depthtile2_fp.glsl
171171
${ENGINE_DIR}/renderer/glsl_source/depthtile2_vp.glsl
172-
${ENGINE_DIR}/renderer/glsl_source/dispersion_C_fp.glsl
173-
${ENGINE_DIR}/renderer/glsl_source/dispersion_C_vp.glsl
174172
${ENGINE_DIR}/renderer/glsl_source/fogGlobal_fp.glsl
175173
${ENGINE_DIR}/renderer/glsl_source/fogGlobal_vp.glsl
176174
${ENGINE_DIR}/renderer/glsl_source/fogQuake3_fp.glsl
@@ -196,8 +194,6 @@ set(GLSLSOURCELIST
196194
${ENGINE_DIR}/renderer/glsl_source/portal_vp.glsl
197195
${ENGINE_DIR}/renderer/glsl_source/reflection_CB_fp.glsl
198196
${ENGINE_DIR}/renderer/glsl_source/reflection_CB_vp.glsl
199-
${ENGINE_DIR}/renderer/glsl_source/refraction_C_fp.glsl
200-
${ENGINE_DIR}/renderer/glsl_source/refraction_C_vp.glsl
201197
${ENGINE_DIR}/renderer/glsl_source/reliefMapping_fp.glsl
202198
${ENGINE_DIR}/renderer/glsl_source/screen_fp.glsl
203199
${ENGINE_DIR}/renderer/glsl_source/screen_vp.glsl

src/engine/renderer/glsl_source/dispersion_C_fp.glsl

Lines changed: 0 additions & 69 deletions
This file was deleted.

src/engine/renderer/glsl_source/dispersion_C_vp.glsl

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/engine/renderer/glsl_source/refraction_C_fp.glsl

Lines changed: 0 additions & 65 deletions
This file was deleted.

src/engine/renderer/glsl_source/refraction_C_vp.glsl

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/engine/renderer/shaders.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include "depthtile1_vp.glsl.h"
2121
#include "depthtile2_fp.glsl.h"
2222
#include "depthtile2_vp.glsl.h"
23-
#include "dispersion_C_fp.glsl.h"
24-
#include "dispersion_C_vp.glsl.h"
2523
#include "fogGlobal_fp.glsl.h"
2624
#include "fogGlobal_vp.glsl.h"
2725
#include "fogQuake3_fp.glsl.h"
@@ -47,8 +45,6 @@
4745
#include "portal_vp.glsl.h"
4846
#include "reflection_CB_fp.glsl.h"
4947
#include "reflection_CB_vp.glsl.h"
50-
#include "refraction_C_fp.glsl.h"
51-
#include "refraction_C_vp.glsl.h"
5248
#include "reliefMapping_fp.glsl.h"
5349
#include "screen_fp.glsl.h"
5450
#include "screen_vp.glsl.h"
@@ -86,8 +82,6 @@ std::unordered_map<std::string, std::string> shadermap({
8682
{ "depthtile1_vp.glsl", std::string(reinterpret_cast<const char*>(depthtile1_vp_glsl), sizeof(depthtile1_vp_glsl)) },
8783
{ "depthtile2_fp.glsl", std::string(reinterpret_cast<const char*>(depthtile2_fp_glsl), sizeof(depthtile2_fp_glsl)) },
8884
{ "depthtile2_vp.glsl", std::string(reinterpret_cast<const char*>(depthtile2_vp_glsl), sizeof(depthtile2_vp_glsl)) },
89-
{ "dispersion_C_fp.glsl", std::string(reinterpret_cast<const char*>(dispersion_C_fp_glsl), sizeof(dispersion_C_fp_glsl)) },
90-
{ "dispersion_C_vp.glsl", std::string(reinterpret_cast<const char*>(dispersion_C_vp_glsl), sizeof(dispersion_C_vp_glsl)) },
9185
{ "fogGlobal_fp.glsl", std::string(reinterpret_cast<const char*>(fogGlobal_fp_glsl), sizeof(fogGlobal_fp_glsl)) },
9286
{ "fogGlobal_vp.glsl", std::string(reinterpret_cast<const char*>(fogGlobal_vp_glsl), sizeof(fogGlobal_vp_glsl)) },
9387
{ "fogQuake3_fp.glsl", std::string(reinterpret_cast<const char*>(fogQuake3_fp_glsl), sizeof(fogQuake3_fp_glsl)) },
@@ -116,8 +110,6 @@ std::unordered_map<std::string, std::string> shadermap({
116110
{ "processSurfaces_cp.glsl", std::string( reinterpret_cast< const char* >( processSurfaces_cp_glsl ), sizeof( processSurfaces_cp_glsl ) ) },
117111
{ "reflection_CB_fp.glsl", std::string(reinterpret_cast<const char*>(reflection_CB_fp_glsl), sizeof(reflection_CB_fp_glsl)) },
118112
{ "reflection_CB_vp.glsl", std::string(reinterpret_cast<const char*>(reflection_CB_vp_glsl), sizeof(reflection_CB_vp_glsl)) },
119-
{ "refraction_C_fp.glsl", std::string(reinterpret_cast<const char*>(refraction_C_fp_glsl), sizeof(refraction_C_fp_glsl)) },
120-
{ "refraction_C_vp.glsl", std::string(reinterpret_cast<const char*>(refraction_C_vp_glsl), sizeof(refraction_C_vp_glsl)) },
121113
{ "reliefMapping_fp.glsl", std::string(reinterpret_cast<const char*>(reliefMapping_fp_glsl), sizeof(reliefMapping_fp_glsl)) },
122114
{ "screen_fp.glsl", std::string(reinterpret_cast<const char*>(screen_fp_glsl), sizeof(screen_fp_glsl)) },
123115
{ "screen_vp.glsl", std::string(reinterpret_cast<const char*>(screen_vp_glsl), sizeof(screen_vp_glsl)) },

src/engine/renderer/tr_local.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,8 +1067,6 @@ enum class shaderProfilerRenderSubGroupsMode {
10671067
ST_PHYSICALMAP,
10681068
ST_SPECULARMAP,
10691069
ST_REFLECTIONMAP, // cubeMap based reflection
1070-
ST_REFRACTIONMAP,
1071-
ST_DISPERSIONMAP,
10721070
ST_SKYBOXMAP,
10731071
ST_SCREENMAP, // 2d offscreen or portal rendering
10741072
ST_PORTALMAP,

0 commit comments

Comments
 (0)