forked from shiptest-ss13/Shiptest
-
-
Notifications
You must be signed in to change notification settings - Fork 119
REWORK: Emissive layers, color-light and more emissives night-lightings #2749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
KOCMODECAHTHUK
wants to merge
6
commits into
CeladonSS13:beta-dev
Choose a base branch
from
KOCMODECAHTHUK:emissive_rework
base: beta-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5496a7f
add: emersives rework - aaaaaaaaaaaaaaaa
KOCMODECAHTHUK 89b49f0
fix: runtimes
KOCMODECAHTHUK 81ce285
miro-fix
KOCMODECAHTHUK 0aa18af
fix: Radial Background layers
KOCMODECAHTHUK 2c913f4
fix: Really BOLD text?
KOCMODECAHTHUK 6096bb2
fix: Wha... Lmao
KOCMODECAHTHUK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,42 @@ | ||
| /// Produces a mutable appearance glued to the [EMISSIVE_PLANE] dyed to be the [EMISSIVE_COLOR]. | ||
| /proc/emissive_appearance(icon, icon_state = "", layer = FLOAT_LAYER, alpha = 255, appearance_flags = NONE) | ||
| var/mutable_appearance/appearance = mutable_appearance(icon, icon_state, layer, EMISSIVE_PLANE, alpha, appearance_flags | EMISSIVE_APPEARANCE_FLAGS) | ||
| appearance.color = GLOB.emissive_color | ||
| /proc/emissive_appearance(icon, icon_state = "", atom/offset_spokesman, layer, alpha = 255, appearance_flags = NONE, offset_const, effect_type = EMISSIVE_BLOOM) | ||
| if((isnull(layer) || layer == FLOAT_LAYER) && IS_TOPDOWN_PLANE(offset_spokesman.plane)) | ||
| layer = TOPDOWN_TO_EMISSIVE_LAYER(offset_spokesman.layer) | ||
| else if(isnull(layer)) | ||
| layer = FLOAT_LAYER | ||
|
|
||
| var/mutable_appearance/appearance = mutable_appearance(icon, icon_state, layer, offset_spokesman, EMISSIVE_PLANE, 255, appearance_flags | EMISSIVE_APPEARANCE_FLAGS, offset_const) | ||
| if(alpha == 255) | ||
| switch(effect_type) | ||
| if(EMISSIVE_NO_BLOOM) | ||
| appearance.color = GLOB.emissive_color_no_bloom | ||
| if (EMISSIVE_BLOOM) | ||
| appearance.color = GLOB.emissive_color | ||
| if (EMISSIVE_SPECULAR) | ||
| appearance.color = GLOB.specular_color | ||
| else | ||
| var/alpha_ratio = alpha/255 | ||
| switch(effect_type) | ||
| if(EMISSIVE_NO_BLOOM) | ||
| appearance.color = _EMISSIVE_COLOR_NO_BLOOM(alpha_ratio) | ||
| if (EMISSIVE_BLOOM) | ||
| appearance.color = _EMISSIVE_COLOR(alpha_ratio) | ||
| if (EMISSIVE_SPECULAR) | ||
| appearance.color = _SPECULAR_COLOR(alpha_ratio) | ||
|
|
||
| return appearance | ||
|
|
||
| /// Produces a mutable appearance glued to the [EMISSIVE_PLANE] dyed to be the [EM_BLOCK_COLOR]. | ||
| /proc/emissive_blocker(icon, icon_state = "", layer = FLOAT_LAYER, alpha = 255, appearance_flags = NONE) | ||
| var/mutable_appearance/appearance = mutable_appearance(icon, icon_state, layer, EMISSIVE_PLANE, alpha, appearance_flags | EMISSIVE_APPEARANCE_FLAGS) | ||
| appearance.color = GLOB.em_block_color | ||
| /proc/emissive_blocker(icon, icon_state = "", atom/offset_spokesman, layer, alpha = 255, appearance_flags = NONE, offset_const) | ||
| if (isnull(layer)) | ||
| if(IS_TOPDOWN_PLANE(offset_spokesman.plane)) | ||
| layer = TOPDOWN_TO_EMISSIVE_LAYER(offset_spokesman.layer) | ||
| else | ||
| layer = FLOAT_LAYER | ||
| var/mutable_appearance/appearance = mutable_appearance(icon, icon_state, layer, offset_spokesman, EMISSIVE_PLANE, alpha, appearance_flags | EMISSIVE_APPEARANCE_FLAGS, offset_const) | ||
| if(alpha == 255) | ||
| appearance.color = GLOB.em_block_color | ||
| else | ||
| var/alpha_ratio = alpha/255 | ||
| appearance.color = _EM_BLOCK_COLOR(alpha_ratio) | ||
| return appearance |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.