-
Notifications
You must be signed in to change notification settings - Fork 167
add SMODS.ScreenShader #1174
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
base: main
Are you sure you want to change the base?
add SMODS.ScreenShader #1174
Conversation
|
+rep good trade |
|
imo CRT should be applied later than normal since it leaves those empty bits on the corners |
|
i'll change it to order of 0 then, that feels right since it is the default shader thats always applied |
|
Is there a good reason for this not being a subclass of SMODS.Shader? |
|
the main reason why i made it as a new object is because G.SHADERS is a table of userdatas, so you can't add a function for getting send vars from one of those, but SMODS.Shaders doesn't contain vanilla shaders, so the best solution i thought of was to separate the initialization of a shader and adding it to the screen (though that still can be done via the |
|
|
Co-authored-by: cg223 <cg223celeste@gmail.com>
Additional Info:
adds a new gameobject - SMODS.ScreenShader, which applies a given shader to the entire screen. Any amount of screenshaders can be stacked on the screen at once without conflicting
i am not very confident that this is good but its ok :3