Overview

PureSDFImage is an experimental component that used to render only SDF texture, unlike to regular SDFImage where both original and SDF textures is rendered.

Using only SDF texture allows to create cool blending effect between two SDF’s, useful for dynamic icons.

On scene You will see two prefabs, try changing LayersLerp slider.

On scene You will see two prefabs, try changing LayersLerp slider.

Effect

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

The two sdf sprite will be interpolated.

Pure SDF Image

Single PureSDFImage render only one layer like Outline, Shadow, Face.

But it allows to specify additional per-instance property like Softness, and to lerp between two sprites.

Untitled

Creation

Pure image can be created in context menu, as well as setup for multiple layers.

Untitled

PureSDFImage uses additional shader channel of TextCoord1.

It will be activated automatically.

Untitled

Rendering stack

Untitled

When PureSDFImage [Multilayer] created it populates with three PureSDFImage’s for Face, Outline and Shadow layers.

PureSDFImageRenderingStack is component that allows manage this layers as single image.