-
Notifications
You must be signed in to change notification settings - Fork 8
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 free: Animation ● StateMachine ● Files(Sync) ● Macros ● Logger ● Controllers ● LG Localization ● Particle Effects ● Tools, other Objects and Helpers
Raptor pro: RACE (The Random Content Engine) ● Savegame System ● UI Subsystem ● Shaders ● Files(Async) ● RichJson ● Scriptor
Back to Repo ● Wiki Home ● Copyright © coldrock.games
- Home
- Working with raptor
- Create a Game
- raptor's object model
- Macros
- Logger
- Controllers
- StateMachine
- Animation
- Particle Effects
- LG Localization
- Interfaces
- Tools, other Objects and Helpers
Raptor Pro Modules