]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add planet lighting (#32522)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 16 Feb 2025 08:35:32 +0000 (19:35 +1100)
committerGitHub <noreply@github.com>
Sun, 16 Feb 2025 08:35:32 +0000 (19:35 +1100)
commitb6ee183dc636394d9d6953df8cefda39b130f1d9
treedaf3e29eccfbcb59f88cb5f830ed4dc7bd0173da
parent19dee8a0291355be90a177c3351f781494461588
Add planet lighting (#32522)

* Implements a Dynamic Lighting System on maps.

* Edit: the night should be a little bit brighter and blue now.

* Major edit: everything must be done on the client side now, with certain datafield replicated.
Changes were outlined in the salvage to accommodate the new lighting system.

* Edit: The offset is now serverside, this makes the time accurate in all situations.

* Removing ununsed import

* Minor tweaks

* Tweak in time precision

* Minor tweak + Unused import removed

* Edit: apparently RealTime is better for what I'm looking for

* Fix: Now the time is calculated correctly.

* Minor tweaks

* Adds condition for when the light should be updated

* Add planet lighting

* she

* close-ish

* c

* bittersweat

* Fixes

* Revert "Merge branch '22719' into 2024-09-29-planet-lighting"

This reverts commit 9f2785bb16aee47d794aa3eed8ae15004f97fc35, reversing
changes made to 19649c07a5fb625423e08fc18d91c9cb101daa86.

* Europa and day-night

* weh

* rooves working

* Clean

* Remove Europa

* Fixes

* fix

* Update

* Fix caves

* Update for engine

* Add sun shadows (planet lighting v2)

For now mostly targeting walls and having the shadows change over time. Got the basic proof-of-concept working just needs a hell of a lot of polish.

* Documentation

* a

* Fixes

* Move blur to an overlay

* Slughands

* Fixes

* Remove v2 work

* Finalise

---------

Co-authored-by: DoutorWhite <thedoctorwhite@gmail.com>
26 files changed:
Content.Client/Light/AfterLightTargetOverlay.cs [new file with mode: 0644]
Content.Client/Light/BeforeLightTargetOverlay.cs [new file with mode: 0644]
Content.Client/Light/EntitySystems/PlanetLightSystem.cs [new file with mode: 0644]
Content.Client/Light/EntitySystems/RoofSystem.cs [new file with mode: 0644]
Content.Client/Light/LightBlurOverlay.cs [new file with mode: 0644]
Content.Client/Light/LightCycleSystem.cs [new file with mode: 0644]
Content.Client/Light/RoofOverlay.cs [new file with mode: 0644]
Content.Client/Light/TileEmissionOverlay.cs [new file with mode: 0644]
Content.IntegrationTests/Tests/SaveLoadMapTest.cs
Content.Server/Light/Components/SetRoofComponent.cs [new file with mode: 0644]
Content.Server/Light/EntitySystems/LightCycleSystem.cs [new file with mode: 0644]
Content.Server/Light/EntitySystems/RoofSystem.cs [new file with mode: 0644]
Content.Server/Parallax/BiomeSystem.cs
Content.Shared/Light/Components/LightCycleComponent.cs [new file with mode: 0644]
Content.Shared/Light/Components/RoofComponent.cs [new file with mode: 0644]
Content.Shared/Light/Components/TileEmissionComponent.cs [new file with mode: 0644]
Content.Shared/Light/EntitySystems/SharedRoofSystem.cs [new file with mode: 0644]
Content.Shared/Maps/ContentTileDefinition.cs
Content.Shared/Parallax/Biomes/Layers/BiomeTileLayer.cs
Content.Shared/Parallax/Biomes/SharedBiomeSystem.cs
Content.Shared/SharedLightCycleSystem.cs [new file with mode: 0644]
Resources/Prototypes/Entities/Markers/tile.yml [new file with mode: 0644]
Resources/Prototypes/Entities/Structures/Walls/walls.yml
Resources/Prototypes/Entities/Tiles/lava.yml
Resources/Prototypes/Entities/Tiles/liquid_plasma.yml
Resources/Prototypes/Procedural/biome_templates.yml