Class GlyphGradient
Inheritance
GlyphGradient
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public class GlyphGradient : VisAssetGradient, IGlyphVisAsset, IVisAssetGradient<GlyphVisAsset>, IVisAsset, IABRInput
Properties
|
Improve this Doc
View Source
Stops
List of gradient stops (length of VisAssets - 1)
Declaration
public List<float> Stops { get; }
Property Value
|
Improve this Doc
View Source
VisAssetCount
How many VisAssets are in the gradient? (1 if it's not a gradient)
Declaration
public int VisAssetCount { get; }
Property Value
|
Improve this Doc
View Source
VisAssets
List of all VisAssets inside this gradient
Declaration
public List<GlyphVisAsset> VisAssets { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetMesh(int)
Get the mesh at an LOD for a single glyph visasset
Declaration
public Mesh GetMesh(int lod)
Parameters
Type |
Name |
Description |
int |
lod |
|
Returns
|
Improve this Doc
View Source
GetMesh(int, int)
Get the mesh at a particular index of the gradient
Declaration
public Mesh GetMesh(int gradientIndex, int lod)
Parameters
Type |
Name |
Description |
int |
gradientIndex |
|
int |
lod |
|
Returns
|
Improve this Doc
View Source
GetMesh(float, int)
Get the mesh at a particular percentage (t-value) through the gradient
Declaration
public Mesh GetMesh(float gradientT, int lod)
Parameters
Type |
Name |
Description |
float |
gradientT |
|
int |
lod |
|
Returns
|
Improve this Doc
View Source
GetNormalMap(int)
Get the normal map at an LOD for a single glyph visasset
Declaration
public Texture2D GetNormalMap(int lod)
Parameters
Type |
Name |
Description |
int |
lod |
|
Returns
|
Improve this Doc
View Source
GetNormalMap(int, int)
Get the normal map at a particular index of the gradient
Declaration
public Texture2D GetNormalMap(int gradientIndex, int lod)
Parameters
Type |
Name |
Description |
int |
gradientIndex |
|
int |
lod |
|
Returns
|
Improve this Doc
View Source
GetNormalMap(float, int)
Get the normal map at a particular percentage (t-value) through the gradient
Declaration
public Texture2D GetNormalMap(float gradientT, int lod)
Parameters
Type |
Name |
Description |
float |
gradientT |
|
int |
lod |
|
Returns
|
Improve this Doc
View Source
GetPreview()
Get a preview of the glyph as a Texture2D, if any
Declaration
public Texture2D GetPreview()
Returns
|
Improve this Doc
View Source
Initialize(Guid, List<GlyphVisAsset>, List<float>)
Initialize this gradient with a UUID, some VisAssets, and some
Stops. This is used instead of a constructor because it is much more
flexible.
Declaration
public void Initialize(Guid uuid, List<GlyphVisAsset> visAssets, List<float> stops)
Parameters
Implements