20 Commits

Author SHA1 Message Date
Aaron Suen
e614341088 Improve shadow workaround
- Setting time of day to 5:00 disables shadows
  properly (incl. moon shadows).
- Remove the pointless /time command.
2021-06-20 10:56:30 -04:00
Aaron Suen
2e55976a72 Work around dynamic shadows (MT5.5+)
- Disable them by default in SP
- Set time of day to midnight and lock it there
2021-06-20 10:42:53 -04:00
Aaron Suen
0251a7d023 Try to reduce spawn star memory leak near spawn
Use grid-aligned pixel locaiton for calculating
opacity so each star pixel position has only one
opacity level associated with it, rather than the
multiple that can currently occupy that opacity
range.
2021-03-16 20:51:33 -04:00
Aaron Suen
3bef859c4c Make spawn star relative to static_spawnpoint if set 2021-03-12 07:19:37 -05:00
Aaron Suen
40cd5b8d9e Fix spawn star showing over darkening 2021-03-04 23:11:16 -05:00
Aaron Suen
068e5fba9f Hotfix for nav star memory leak issue 2021-03-01 17:14:35 -05:00
Aaron Suen
d69f5fa592 Increase size of spawn star dead zone 2021-02-28 22:52:55 -05:00
Aaron Suen
253ad94fa8 Add spawnward navigation star to skybox
When not pathologically near spawn, a magenta
star appears above pointing toward spawn, and
giving an indication (logarithmic magnitude) of
the distance to spawn.
2021-02-28 22:46:14 -05:00
Aaron Suen
2999a1fc18 Fantastic new skybox by WintersKnight94 2020-06-23 21:14:41 -04:00
Aaron Suen
1caa2e6285 Fix sunrise tint texture 2020-06-22 23:40:31 -04:00
Aaron Suen
466805da48 Enroll skybox, fix some bugs 2020-06-22 23:17:01 -04:00
Aaron Suen
e0156b4742 Add profiler instrumentation metadata everywhere
N.B. the MT built-in profiler doesn't yet actually support reading
labels from bare-function registrations, so a builtin hack is
needed.
2020-06-15 07:21:39 -04:00
Aaron Suen
b029658a9d More registration fixes 2020-03-28 08:53:35 -04:00
Aaron Suen
15ef9de66a Try dimming the sky a bit more.
This should hopefully make the land seem a bit
brighter in comparison...
2020-02-22 21:16:15 -05:00
Aaron Suen
aa0f4943cf Dynamically dim fog too. 2020-02-22 19:12:28 -05:00
Aaron Suen
7444a0248b Fix fog color (again) and a crash bug.
Sadly I don't have a way to make fog color texture
pack customizable, so it will have to be hard-coded
for now, and TP artists may want to advise players
to just disable fog if they can, or maybe a CSM could
work...
2020-02-22 19:08:51 -05:00
Aaron Suen
06ab50888b Fix fog brightness...? 2020-02-22 18:32:44 -05:00
Aaron Suen
71db095b99 Remove debugging code. 2020-02-22 16:57:14 -05:00
Aaron Suen
5b2b334fe4 Bathe the world in twilight, not sunlight. 2020-02-22 16:36:27 -05:00
Aaron Suen
c7a322941e Experimental new natural light system.
- No day/night cycle, no sun/moon.
- Get rid of clouds too.
- Skybox is now 100% texture-packable.
- Natural light diminishes with depth.

Night-time no longer disrupts gameplay topside, but
skylights are no longer useful to an infinite depth and
artificial light is necessary for all deep mining.
2020-02-22 10:38:03 -05:00