Skip to content

Commit 9c72c6f

Browse files
committed
Merge PR #5370 (soloturn-remove-clamp-lighting) into merge-train
2 parents 167da26 + c7fde3b commit 9c72c6f

6 files changed

Lines changed: 0 additions & 27 deletions

File tree

engine/src/main/java/org/terasology/engine/config/RenderingConfig.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ public class RenderingConfig extends AbstractSubscribable {
6161
public static final String FRAME_LIMIT = "FrameLimit";
6262
public static final String FBO_SCALE = "FboScale";
6363
public static final String UI_SCALE = "UiScale";
64-
public static final String CLAMP_LIGHTING = "ClampLighting";
6564
public static final String SCREENSHOT_SIZE = "screenshotSize";
6665
public static final String SCREENSHOT_FORMAT = "ScreenshotFormat";
6766
public static final String DUMP_SHADERS = "DumpShaders";
@@ -110,7 +109,6 @@ public class RenderingConfig extends AbstractSubscribable {
110109
private boolean inscattering;
111110
private boolean localReflections;
112111
private boolean vSync;
113-
private boolean clampLighting;
114112
private int fboScale;
115113
private int uiScale = 100;
116114
private boolean dumpShaders;
@@ -630,16 +628,6 @@ public void setUiScale(int uiScale) {
630628
propertyChangeSupport.firePropertyChange(UI_SCALE, oldScale, this.uiScale);
631629
}
632630

633-
public boolean isClampLighting() {
634-
return clampLighting;
635-
}
636-
637-
public void setClampLighting(boolean clampLighting) {
638-
boolean oldValue = this.clampLighting;
639-
this.clampLighting = clampLighting;
640-
propertyChangeSupport.firePropertyChange(CLAMP_LIGHTING, oldValue, this.clampLighting);
641-
}
642-
643631
public ScreenshotSize getScreenshotSize() {
644632
return screenshotSize;
645633
}

engine/src/main/java/org/terasology/engine/rendering/nui/layers/mainMenu/videoSettings/VideoSettingsScreen.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ public void set(Resolution value) {
332332
WidgetUtil.tryBindCheckbox(this, "vsync", BindHelper.bindBeanProperty("vSync", config.getRendering(), Boolean.TYPE));
333333
WidgetUtil.tryBindCheckbox(this, "eyeAdaptation", BindHelper.bindBeanProperty("eyeAdaptation", config.getRendering(), Boolean.TYPE));
334334
WidgetUtil.tryBindCheckbox(this, "ssao", BindHelper.bindBeanProperty("ssao", config.getRendering(), Boolean.TYPE));
335-
WidgetUtil.tryBindCheckbox(this, "clampLighting", BindHelper.bindBeanProperty("clampLighting", config.getRendering(), Boolean.TYPE));
336335
WidgetUtil.tryBindCheckbox(this, "bloom", BindHelper.bindBeanProperty("bloom", config.getRendering(), Boolean.TYPE));
337336
WidgetUtil.tryBindCheckbox(this, "lightShafts", BindHelper.bindBeanProperty("lightShafts", config.getRendering(), Boolean.TYPE));
338337
WidgetUtil.tryBindCheckbox(this, "vignette", BindHelper.bindBeanProperty("vignette", config.getRendering(), Boolean.TYPE));

engine/src/main/java/org/terasology/engine/rendering/opengl/GLSLShader.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,6 @@ private StringBuilder createShaderBuilder() {
237237
if (renderConfig.isInscattering()) {
238238
builder.append("#define INSCATTERING \n");
239239
}
240-
// TODO A 3D wizard should take a look at this. Configurable for the moment to make better comparisons possible.
241-
if (renderConfig.isClampLighting()) {
242-
builder.append("#define CLAMP_LIGHTING \n");
243-
}
244240

245241
for (ChunkVertexFlag vertexFlag : ChunkVertexFlag.values()) {
246242
builder.append("#define ").append(vertexFlag.getDefineName()).append(" int(").append(vertexFlag.getValue()).append(") \n");

engine/src/main/resources/default.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"inscattering": true,
4444
"localReflections": false,
4545
"vSync": false,
46-
"clampLighting": false,
4746
"fboScale": 100,
4847
"dumpShaders": false,
4948
"screenshotSize": "${engine:menu#screenshot-size-normal}",

engine/src/main/resources/org/terasology/engine/assets/i18n/menu_en.lang

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
"change-keybind-popup-message": "is already bound to an action. Rebind anyway?",
8989
"change-keybind-popup-title": "Key already bound",
9090
"chunk-lods": "Chunk LODs",
91-
"clamp-lighting": "Clamp Lighting",
9291
"cloud-shadows": "Cloud Shadows",
9392
"config": "Configure",
9493
"connecting-to": "Connecting to",

engine/src/main/resources/org/terasology/engine/assets/ui/menu/videoMenuScreen.ui

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,6 @@
377377
"type": "UICheckbox",
378378
"id": "ssao"
379379
},
380-
{
381-
"type": "UILabel",
382-
"text": "${engine:menu#clamp-lighting}: "
383-
},
384-
{
385-
"type": "UICheckbox",
386-
"id": "clampLighting"
387-
},
388380
{
389381
"type": "UILabel",
390382
"text": "${engine:menu#bloom-effect}: "

0 commit comments

Comments
 (0)