-
Notifications
You must be signed in to change notification settings - Fork 6
GrayScaleShader
Grisgram edited this page Jan 6, 2024
·
4 revisions
This is a very simple, straightforward shader, which does not need any parameters or configuration.
It will render everything in grayscales using the multipliers [0.299, 0.587, 0.114]
for RGB while activated.
To render a single object with this shader, use code like this in your Draw
or DrawGUI
event:
shader_set(GrayScaleShader);
draw_self();
shader_reset();
That's it! Now your object will look grayscaled.
Raptor core: Macros ● Logger ● Controllers ● LG Localization ● RACE (The Random Content Engine) ● Savegame System
Game modules: UI Subsystem ● Animation ● StateMachine ● Shaders ● Particle Effects ● Tools, other Objects and Helpers
Back to Repo ● Wiki Home ● Copyright © coldrock.games