]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add sun shadows (planet lighting stage 2) (#35145)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sat, 8 Mar 2025 05:07:42 +0000 (16:07 +1100)
committerGitHub <noreply@github.com>
Sat, 8 Mar 2025 05:07:42 +0000 (16:07 +1100)
commitf51b9bc86e3762476a450c24ff4d632118ea9c2d
treefce99876a5496eee9874bc32f479d783e34e9c6b
parentdb96cc7881bed8d71b62fd658dde66e325e392f7
Add sun shadows (planet lighting stage 2) (#35145)

* 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

* Apply RoofOverlay per-grid not per-map

* Fix light render scales

* sangas

* Juice it a bit

* Better angle

* Fixes

* Add color support

* Rounding bandaid

* Wehs

* Better

* Remember I forgot to do this when writing docs

---------

Co-authored-by: DoutorWhite <thedoctorwhite@gmail.com>
17 files changed:
Content.Client/Light/AfterLightTargetOverlay.cs
Content.Client/Light/EntitySystems/PlanetLightSystem.cs
Content.Client/Light/EntitySystems/SunShadowSystem.cs [new file with mode: 0644]
Content.Client/Light/LightCycleSystem.cs
Content.Client/Light/RoofOverlay.cs
Content.Client/Light/SunShadowOverlay.cs [new file with mode: 0644]
Content.Server/Light/EntitySystems/LightCycleSystem.cs
Content.Server/Light/EntitySystems/SunShadowSystem.cs [new file with mode: 0644]
Content.Server/Parallax/BiomeSystem.cs
Content.Shared/Light/Components/IsRoofComponent.cs
Content.Shared/Light/Components/SunShadowCastComponent.cs [new file with mode: 0644]
Content.Shared/Light/Components/SunShadowComponent.cs [new file with mode: 0644]
Content.Shared/Light/Components/SunShadowCycleComponent.cs [new file with mode: 0644]
Content.Shared/Light/EntitySystems/SharedLightCycleSystem.cs [moved from Content.Shared/SharedLightCycleSystem.cs with 90% similarity]
Content.Shared/Light/EntitySystems/SharedRoofSystem.cs
Content.Shared/Light/EntitySystems/SharedSunShadowSystem.cs [new file with mode: 0644]
Resources/Prototypes/Entities/Structures/Walls/walls.yml