Shader - Mtax-Development/GML-OOP GitHub Wiki

Description

Constructs a Shader resource used to alter drawing.

As Shader programs are written in their own languages, GameMaker Language makes use of several systems to communicate with them. Example of such are ones used to communicate with variables within the Shader code to manage uniforms and samplers. After being read, last received information will be added to an appropriate {struct} in this constructor for later reading, each in a newly created property named with the exact name of the variable inside the Shader code.

Specification

Destruction
Elements
Garbage Collection
None

Properties

Name
Type
Default
Modifiable
ID
{int:shader}
None
No
name
None
No
compiled
None
No
uniform
{}
No
sampler
{}
No

Events

Pre-execution
Post-execution
beforeActivation
afterActivation
beforeDeactivation
afterDeactivation

Construction types

Name
Arguments
New constructor
shader {int:shader}
Empty
Constructor copy
other {Shader}
⚠️ **GitHub.com Fallback** ⚠️