Skip to content

Comments

Fix Skybox lighting#5

Open
Pas2704 wants to merge 1 commit intoaustinvaness:mainfrom
Pas2704:main
Open

Fix Skybox lighting#5
Pas2704 wants to merge 1 commit intoaustinvaness:mainfrom
Pas2704:main

Conversation

@Pas2704
Copy link

@Pas2704 Pas2704 commented Sep 11, 2024

I recently noticed that skyboxes loaded by this plugin do not have their lighting properties loaded correctly.
The lighting properties are assigned to MySector.SunProperties early in the game loading process, before the plugin's BeforeInit runs.
MyEnvironmentDefinition's SunProperties field isn't read after this happens, so the plugin assigning to this doesn't do anything.
By assigning to MySector.SunProperties instead, the skybox will appear the same as if it were loaded as part of the world.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant