summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-12-25 07:37:53 +0100
committerLaG1924 <lag1924@gmail.com>2021-12-25 07:37:53 +0100
commit9feb51764077093a95a7b98af4b936a242096087 (patch)
tree51d377a4560a7e12b3b404b0b043d9f64981caf3 /cwd/assets/altcraft
parentAdded smooth lighting (diff)
downloadAltCraft-9feb51764077093a95a7b98af4b936a242096087.tar
AltCraft-9feb51764077093a95a7b98af4b936a242096087.tar.gz
AltCraft-9feb51764077093a95a7b98af4b936a242096087.tar.bz2
AltCraft-9feb51764077093a95a7b98af4b936a242096087.tar.lz
AltCraft-9feb51764077093a95a7b98af4b936a242096087.tar.xz
AltCraft-9feb51764077093a95a7b98af4b936a242096087.tar.zst
AltCraft-9feb51764077093a95a7b98af4b936a242096087.zip
Diffstat (limited to '')
-rw-r--r--cwd/assets/altcraft/scripts/ui.lua1
-rw-r--r--cwd/assets/altcraft/ui/options-styles.rcss2
-rw-r--r--cwd/assets/altcraft/ui/options.rml6
3 files changed, 8 insertions, 1 deletions
diff --git a/cwd/assets/altcraft/scripts/ui.lua b/cwd/assets/altcraft/scripts/ui.lua
index 5973fc4..b8a7329 100644
--- a/cwd/assets/altcraft/scripts/ui.lua
+++ b/cwd/assets/altcraft/scripts/ui.lua
@@ -8,6 +8,7 @@ local options = {
targetFps = 60,
vsync = false,
wireframe = false,
+ smoothlight = false,
ssaoSamples = 0,
ssaoScale = 0.5,
}
diff --git a/cwd/assets/altcraft/ui/options-styles.rcss b/cwd/assets/altcraft/ui/options-styles.rcss
index 4822580..13c20d2 100644
--- a/cwd/assets/altcraft/ui/options-styles.rcss
+++ b/cwd/assets/altcraft/ui/options-styles.rcss
@@ -80,5 +80,5 @@ input.range sliderarrowinc {
width: 45%;
height: 8%;
position: fixed;
- margin: 3% auto auto;
+ margin: 0% auto auto;
}
diff --git a/cwd/assets/altcraft/ui/options.rml b/cwd/assets/altcraft/ui/options.rml
index 7211ef2..4529487 100644
--- a/cwd/assets/altcraft/ui/options.rml
+++ b/cwd/assets/altcraft/ui/options.rml
@@ -62,6 +62,12 @@
</div>
<div class="option">
+ <label>Smooth lighting</label>
+ <input type="checkbox" id="smoothlight" />
+ <span id="smoothlight-val"></span>
+ </div>
+
+ <div class="option">
<label>Ambient occlusion quality</label>
<input type="range" min="0" max="64" step="4" id="ssaoSamples" />
<span id="ssaoSamples-val"></span>