Texture Nodes
Texture nodes sample the current glyph texture. These nodes are fragment-only and high-cost.
This page lists 2 nodes.
Sample Glyph Alpha
sample-alpha
Samples glyph alpha at a supplied UV coordinate.
| Property | Value |
|---|---|
| Stage | fragment |
| Performance cost | high |
Inputs
| Input | Type | Required | Default |
|---|---|---|---|
uv | vec2 | Yes | [0, 0] |
offset | vec2 | Yes | [0, 0] |
Outputs
| Output | Type |
|---|---|
value | float |
Sample Glyph Colour
sample-colour
Samples the font texture colour at a supplied UV coordinate.
| Property | Value |
|---|---|
| Stage | fragment |
| Performance cost | high |
Inputs
| Input | Type | Required | Default |
|---|---|---|---|
uv | vec2 | Yes | [0, 0] |
offset | vec2 | Yes | [0, 0] |
Outputs
| Output | Type |
|---|---|
value | vec3 |