top of page

Shader: 2D Distance Fields

About
 

This 2d distance field shader has been created in Unreal Engine. Currently it can be used to easily create static distance field textures. This way it can be avoided it’s unviable cost in real time, working as a tool. The shader is interactive through exposed material parameters, which allow the developer to modify various properties.

Parameters:

  • Texture Size: Controls the size of the created texture.

  • Width: Controls the size to which the distance field reaches.

  • Texture: Allows the user to select a different texture.

 

  • R Border Size: Controls the border’s length in one of the SDF options.

  • SDF Option: Allows the user to select the directions of the field.

  • Invert Values: Allows the user to select which part is more black or white.

  • Icon Base: Allows the user to change the base texture to create different DFs.

  • RT Static Texture DF: Allows the user to change the Static DF texture to select a SDF option within it.

Copyright 2021 | Manuel Carrasco. All Rights Reserved

  • YouTube - círculo blanco
  • Twitter - círculo blanco
  • LinkedIn - círculo blanco
bottom of page