Skip to content

eagle(tex, uv, texelSize?): Node <"vec4">

Defined in: packages/nodes/src/upscale/eagle.ts:18

Eagle pixel art upscaling algorithm. Simple 2x upscaler that enhances diagonal lines.

Texture 

Source texture (pixel art)

Node <"vec2">

UV coordinates

Vec2Input = ...

Size of one texel in source texture

Node <"vec4">

Upscaled color

const upscaled = eagle(texture, uv, [1/256, 1/256])