EZ Shader
EZ Shader eliminates the redundancy of setting up shaders in Game Maker. Just call 3 scripts and you can quickly interface with shader parameters (uniform variables).
Features
How to use EZ Shader in your game in 3 easy steps:
The main scripts you need are
ezshader();
get_uniforms();
set_uniforms();
1. In a create event, call
ezshader();
get_uniforms(your_shader_name);
2. In a draw event, call
shader_set(your_shader_name);
set_uniforms();
{draw something}
shader_reset();
3. (Optional) In another event (step event, button press, etc) call something to modify a uniform variable listed in the ezshader() script
Eg.
//Make the parameter for a shader oscillate
params[2] = cos(global.Time / 20) * 20;
//Make the color of the shader oscillate
setShaderColor(0.5, 1, cos(global.Time/20), 1);
{etcetera}
Objects
oGlobal
oEZShader
oBtn
End User Licence Agreement (EULA).