-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] Actually supports alpha passed into emissive stuff [MDB IGNO…
…RE] (#24481) * Actually supports alpha passed into emissive stuff (#79117) ## About The Pull Request Ok so like, the emissive procs have an alpha argument right? The thing is, the thing is it doesn't fucking do anything. Alpha is a component of the color var (at least when it's a matrix), so when we set alpha and then set color to a matrix, the alpha gets overriden. Inverse is also true. I want to support alpha args, since I like the idea of dimmable emissives. Soooooo Let's take the alpha arg, divide it by 255, and replace everything that cares about alpha (as an intensity thing) with it. This lets us do transparent emissives and transparent emissive blockers. I added some guard checks to hopefully avoid the list init most of the time (it is in theory comprable since color sets should copy but I don't trust byond to optimize for that) Also modified the macros to suppport what I'm doing nicely ## Why It's Good For The Game We should support this, and now we do * Actually supports alpha passed into emissive stuff --------- Co-authored-by: LemonInTheDark <[email protected]>
- Loading branch information
1 parent
a9d96ac
commit 9a11e0c
Showing
2 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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 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