Shader - Mtax-Development/GML-OOP GitHub Wiki
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
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.
Destruction |
Elements |
Garbage Collection |
None |
Name |
Type |
Default |
Modifiable |
ID |
{int:shader} |
None |
No |
name |
{string} |
None |
No |
compiled |
{bool} |
None |
No |
uniform |
{struct} |
{} |
No |
sampler |
{struct} |
{} |
No |
Pre-execution |
Post-execution |
beforeActivation |
afterActivation |
beforeDeactivation |
afterDeactivation |
Name |
Arguments |
New constructor |
shader {int:shader} |
Empty |
|
Constructor copy |
other {Shader} |