Class OutlineEffect
- Namespace
- EPOOutline
- Assembly
- Assembly-CSharp-firstpass.dll
public static class OutlineEffect
- Inheritance
-
OutlineEffect
- Inherited Members
-
Fields
BasicBlitMaterial
public static Material BasicBlitMaterial
Field Value
- Material
BlurMaterial
public static Material BlurMaterial
Field Value
- Material
ClearStencilMaterial
public static Material ClearStencilMaterial
Field Value
- Material
ColorHash
public static readonly int ColorHash
Field Value
- int
ColorMaskHash
public static readonly int ColorMaskHash
Field Value
- int
ComparisonHash
public static readonly int ComparisonHash
Field Value
- int
CullHash
public static readonly int CullHash
Field Value
- int
CutoutMaskHash
public static readonly int CutoutMaskHash
Field Value
- int
CutoutTextureHash
public static readonly int CutoutTextureHash
Field Value
- int
CutoutTextureSTHash
public static readonly int CutoutTextureSTHash
Field Value
- int
CutoutThresholdHash
public static readonly int CutoutThresholdHash
Field Value
- int
DilateMaterial
public static Material DilateMaterial
Field Value
- Material
DilateShiftHash
public static readonly int DilateShiftHash
Field Value
- int
DstBlendHash
public static readonly int DstBlendHash
Field Value
- int
EffectSizeHash
public static readonly int EffectSizeHash
Field Value
- int
EmptyFillMaterial
public static Material EmptyFillMaterial
Field Value
- Material
FillMaskMaterial
public static Material FillMaskMaterial
Field Value
- Material
FillRefHash
public static readonly int FillRefHash
Field Value
- int
FinalBlitMaterial
public static Material FinalBlitMaterial
Field Value
- Material
HelperBufferHash
public static readonly int HelperBufferHash
Field Value
- int
HelperInfoBufferHash
public static readonly int HelperInfoBufferHash
Field Value
- int
InfoBufferHash
public static readonly int InfoBufferHash
Field Value
- int
InfoTargetHash
public static readonly int InfoTargetHash
Field Value
- int
InitialTexHash
public static readonly int InitialTexHash
Field Value
- int
ObstacleMaterial
public static Material ObstacleMaterial
Field Value
- Material
OperationHash
public static readonly int OperationHash
Field Value
- int
OutlineMaskMaterial
public static Material OutlineMaskMaterial
Field Value
- Material
OutlineMaterial
public static Material OutlineMaterial
Field Value
- Material
OutlineRefHash
public static readonly int OutlineRefHash
Field Value
- int
PartialBlitMaterial
public static Material PartialBlitMaterial
Field Value
- Material
PrimaryBufferHash
public static readonly int PrimaryBufferHash
Field Value
- int
PrimaryInfoBufferHash
public static readonly int PrimaryInfoBufferHash
Field Value
- int
ReadMaskHash
public static readonly int ReadMaskHash
Field Value
- int
RefHash
public static readonly int RefHash
Field Value
- int
ScaleHash
public static readonly int ScaleHash
Field Value
- int
ShiftHash
public static readonly int ShiftHash
Field Value
- int
SrcBlendHash
public static readonly int SrcBlendHash
Field Value
- int
TargetHash
public static readonly int TargetHash
Field Value
- int
TextureIndexHash
public static readonly int TextureIndexHash
Field Value
- int
TransparentBlitMaterial
public static Material TransparentBlitMaterial
Field Value
- Material
WriteMaskHash
public static readonly int WriteMaskHash
Field Value
- int
ZPrepassMaterial
public static Material ZPrepassMaterial
Field Value
- Material
ZTestHash
public static readonly int ZTestHash
Field Value
- int
ZWriteHash
public static readonly int ZWriteHash
Field Value
- int
keywords
public static List<string> keywords
Field Value
- List<string>
targets
public static List<OutlineEffect.OutlineTargetGroup> targets
Field Value
- List<OutlineEffect.OutlineTargetGroup>
Methods
Blit(OutlineParameters, RenderTargetIdentifier, RenderTargetIdentifier, RenderTargetIdentifier, Material, float, CommandBuffer, int, Rect?)
public static void Blit(OutlineParameters parameters, RenderTargetIdentifier source, RenderTargetIdentifier destination, RenderTargetIdentifier destinationDepth, Material material, float effectSize, CommandBuffer buffer, int pass = -1, Rect? viewport = null)
Parameters
parameters
OutlineParameters
source
RenderTargetIdentifier
destination
RenderTargetIdentifier
destinationDepth
RenderTargetIdentifier
material
Material
effectSize
float
buffer
CommandBuffer
pass
int
viewport
Rect?
ComputeEffectShift(OutlineParameters)
public static float ComputeEffectShift(OutlineParameters parameters)
Parameters
parameters
OutlineParameters
Returns
- float
DrawFill(OutlineParameters, RenderTargetIdentifier)
public static void DrawFill(OutlineParameters parameters, RenderTargetIdentifier targetSurface)
Parameters
parameters
OutlineParameters
targetSurface
RenderTargetIdentifier
DrawOutlineables(OutlineParameters, CompareFunction, Func<Outlinable, bool>, Func<Outlinable, Color>, Func<Outlinable, Material>, RenderStyle, OutlinableDrawingMode)
public static int DrawOutlineables(OutlineParameters parameters, CompareFunction function, Func<Outlinable, bool> shouldRender, Func<Outlinable, Color> colorProvider, Func<Outlinable, Material> materialProvider, RenderStyle styleMask, OutlinableDrawingMode modeMask = OutlinableDrawingMode.Normal)
Parameters
parameters
OutlineParameters
function
CompareFunction
shouldRender
Func<Outlinable, bool>
colorProvider
Func<Outlinable, Color>
materialProvider
Func<Outlinable, Material>
styleMask
RenderStyle
modeMask
OutlinableDrawingMode
Returns
- int
GetBlurShift(BlurType, int)
public static float GetBlurShift(BlurType blurType, int iterrationsCount)
Parameters
blurType
BlurType
iterrationsCount
int
Returns
- float
public static float GetMaskingValueForMode(OutlinableDrawingMode mode)
Parameters
mode
OutlinableDrawingMode
Returns
- float
InitMaterials()
[RuntimeInitializeOnLoadMethod]
public static void InitMaterials()
LoadMaterial(string)
public static Material LoadMaterial(string shaderName)
Parameters
shaderName
string
Returns
- Material
Postprocess(OutlineParameters, int, int, Material, int, bool, float, ref int, Rect, float)
public static void Postprocess(OutlineParameters parameters, int first, int second, Material material, int iterations, bool additionalShift, float shiftValue, ref int stencil, Rect viewport, float scale)
Parameters
parameters
OutlineParameters
first
int
second
int
material
Material
iterations
int
additionalShift
bool
shiftValue
float
stencil
int
viewport
Rect
scale
float
PrepareTargets(OutlineParameters)
public static void PrepareTargets(OutlineParameters parameters)
Parameters
parameters
OutlineParameters
SetupBlurKeyword(OutlineParameters)
public static void SetupBlurKeyword(OutlineParameters parameters)
Parameters
parameters
OutlineParameters
SetupCull(OutlineParameters, OutlineTarget)
public static void SetupCull(OutlineParameters parameters, OutlineTarget target)
Parameters
parameters
OutlineParameters
target
OutlineTarget
SetupCutout(OutlineParameters, OutlineTarget)
public static void SetupCutout(OutlineParameters parameters, OutlineTarget target)
Parameters
parameters
OutlineParameters
target
OutlineTarget
SetupDilateKeyword(OutlineParameters)
public static void SetupDilateKeyword(OutlineParameters parameters)
Parameters
parameters
OutlineParameters
SetupOutline(OutlineParameters)
public static void SetupOutline(OutlineParameters parameters)
Parameters
parameters
OutlineParameters