Class SurfaceTextureGradient
Inheritance
SurfaceTextureGradient
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public class SurfaceTextureGradient : VisAssetGradient, ISurfaceTextureVisAsset, IVisAssetGradient<SurfaceTextureVisAsset>, IVisAsset, IABRInput, ITextureGradient
Properties
|
Improve this Doc
View Source
BlendMaps
Internal calculations for blend maps used for rendering
Declaration
public GradientBlendMap BlendMaps { get; }
Property Value
|
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<SurfaceTextureVisAsset> VisAssets { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetTexture()
Obtain the first (or, only) texture in a multi-visasset gradient
Declaration
public Texture2D GetTexture()
Returns
|
Improve this Doc
View Source
GetTexture(int)
Obtain the texture at a specific index within a multi-visasset gradient
Declaration
public Texture2D GetTexture(int gradientIndex)
Parameters
Type |
Name |
Description |
int |
gradientIndex |
|
Returns
|
Improve this Doc
View Source
GetTexture(float)
Obtain the texture at a specific t-value (percentage) within a multi-visasset gradient
Declaration
public Texture2D GetTexture(float gradientT)
Parameters
Type |
Name |
Description |
float |
gradientT |
|
Returns
|
Improve this Doc
View Source
Initialize(Guid, List<SurfaceTextureVisAsset>, 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<SurfaceTextureVisAsset> visAssets, List<float> stops)
Parameters
Implements