(6.0.0) Shader - JujuAdams/ScribbleOldDocs GitHub Wiki

Scribble's shader is written in GLSL ES and ports to all GameMaker export targets.

All shader functions are located in the vertex shader. The fragment shader is passthrough.

 

Functions

 

Uniforms

Attribute Datatype Purpose
u_vColourBlend vec4
u_fTime float
u_fTypewriterMethod float
u_fTypewriterWindowArray[] float array
u_fTypewriterSmoothness float
u_aDataFields[] float array

 

Attributes

Attribute Datatype Purpose
in_Position vec3
in_Normal vec3
in_Colour vec4
in_TextureCoord vec2

 

Varying

Attribute Datatype Purpose
v_vTexcoord vec3
v_vColour vec3