Wiki

Clone wiki

Mono:UI / Resources / Shaders

Shaders

Mono:UI uses several Shaders for presenting its content. These Shaders are required for UI elements to be displayed correctly, but may also be useful in isolation.

List

Fragment Shaders

Shader Uniforms Description
m_SBlur vec2 size, vec2 direction Blurs an image of a given size in a given direction.
m_SRtoAlpha vec3 colour Uses the red channel as the alpha channel, and uses a given colour for the rgb channels.

Vertex Shaders

Shader Uniforms Description

See Also

Updated