Icon

EZ Shader

Boolean Dimensions

You must be logged in to obtain assets

Contact Publisher

Description

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

  • Scripts for getting and setting 19 commonly used uniform variables
  • Bonus function: draw a rectangular outline with width: draw_rect(x1, y1, x2, y2, border_width);
  • Bonus function: draw a button with style: draw_btn(x, y, color, text);

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

  • Creates all global variables
  • Handles common controls such as game exit, game restart

oEZShader

  • Majority of code
  • Creates the EZ Shader system
  • Creates button objects
  • Creates arrays for backgrounds and shaders

oBtn

  • A general button object
  • Action is defined in the mouse event

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS1 - Version 1.0.0. Published January 7, 2018

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top