Detailed Description

Blaze has a unique way of rendering distance fields - the things used to display text. Because of how it works, it has an interesting side effect - you can vary the distance spread at a vertex level. This can be used for some awesome glow effects or even for some complex terrain heightmap generation.

Static Public Member Functions

static void SetFunction (OnGetDistance method)
 Sets a custom distance spread function for both inner and outer spreads. More...
 
static void SetFunctions (OnGetDistance inner, OnGetDistance outer, bool hd)
 Sets a custom distance spread function for inner and outer spreads. More...
 

Static Public Attributes

static bool Custom
 Have you got a custom distance spread functions? Use SetFunctions to apply this. More...
 
static OnGetDistance GetInner
 The delegate to run on the inner spread. Use SetFunction to apply this. More...
 
static OnGetDistance GetOuter
 The delegate to run on the outer spread. Use SetFunction to apply this. More...
 
static bool InnerOuterDiff =false
 True if inner/outer spreads are different. More...
 
static float DefaultInner =0.2f
 The default inner spread. More...
 
static float DefaultOuter =0.2f
 The default outer spread. More...
 

Member Function Documentation

static void Blaze.DistanceSpread.SetFunction ( OnGetDistance  method)
inlinestatic

Sets a custom distance spread function for both inner and outer spreads.

static void Blaze.DistanceSpread.SetFunctions ( OnGetDistance  inner,
OnGetDistance  outer,
bool  hd 
)
inlinestatic

Sets a custom distance spread function for inner and outer spreads.

Member Data Documentation

bool Blaze.DistanceSpread.Custom
static

Have you got a custom distance spread functions? Use SetFunctions to apply this.

float Blaze.DistanceSpread.DefaultInner =0.2f
static

The default inner spread.

float Blaze.DistanceSpread.DefaultOuter =0.2f
static

The default outer spread.

OnGetDistance Blaze.DistanceSpread.GetInner
static

The delegate to run on the inner spread. Use SetFunction to apply this.

OnGetDistance Blaze.DistanceSpread.GetOuter
static

The delegate to run on the outer spread. Use SetFunction to apply this.

bool Blaze.DistanceSpread.InnerOuterDiff =false
static

True if inner/outer spreads are different.