C# Class DistanceField, distancefield-unity

Inheritance: ImageEffectBase
ファイルを表示 Open project: kvantetore/distancefield-unity Class Usage Examples

Public Methods

Method Description
CreateDistanceFieldTexture ( Texture2D inputTexture, TextureChannel channel, int outSize ) : Texture2D

Private Methods

Method Description
GetTextureChannel ( Texture2D tex, TextureChannel channel ) : byte[]
SetTextureChannel ( Texture2D tex, TextureChannel channel, byte channelData ) : void
mindist ( byte buffer, int w, int h, int x, int y, int r, float maxdist ) : float
render ( byte input, int w, int h, int outsize ) : byte[]

Method Details

CreateDistanceFieldTexture() public static method

public static CreateDistanceFieldTexture ( Texture2D inputTexture, TextureChannel channel, int outSize ) : Texture2D
inputTexture UnityEngine.Texture2D
channel TextureChannel
outSize int
return UnityEngine.Texture2D