Class Distance
Inheritance
System.Object
Distance
Assembly: Mixture.Runtime.dll
Syntax
[Documentation("\r\nExecute a flood fill operation on all pixels above the specified threshold.\r\n\r\nNote that the computational cost of this node only depends on the texture resolution and not the distance parameter.\r\n\r\nSmooth is only in alpha\r\n")]
[Serializable]
public class Distance : ComputeShaderNode
Fields
|
Improve this Doc
View Source
distance
Declaration
[Tooltip("Distance value in percent of the texture size")]
public float distance
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
distanceMode
Declaration
[Tooltip("How the distance is calculated")]
public Distance.DistanceMode distanceMode
Field Value
|
Improve this Doc
View Source
Declaration
Field Value
Type |
Description |
UnityEngine.Texture |
|
|
Improve this Doc
View Source
mode
Declaration
[Tooltip("Output mode of the distance, by default a blend with the distance is performed")]
public Distance.Mode mode
Field Value
|
Improve this Doc
View Source
output
Declaration
public CustomRenderTexture output
Field Value
Type |
Description |
UnityEngine.CustomRenderTexture |
|
|
Improve this Doc
View Source
threshold
Declaration
[Tooltip("Threshold value to select pixels to dilate. Any value above this threshold will be selected")]
public float threshold
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
thresholdMode
Declaration
[Tooltip("Select which value to compare against the threshold")]
public Distance.ThresholdMode thresholdMode
Field Value
Properties
|
Improve this Doc
View Source
computeShaderResourcePath
Declaration
protected override string computeShaderResourcePath { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
|
Improve this Doc
View Source
name
Declaration
public override string name { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
|
Improve this Doc
View Source
previewTexture
Declaration
public override Texture previewTexture { get; }
Property Value
Type |
Description |
UnityEngine.Texture |
|
Overrides
|
Improve this Doc
View Source
showDefaultInspector
Declaration
public override bool showDefaultInspector { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
supportedDimensions
Declaration
public override List<OutputDimension> supportedDimensions { get; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
Declaration
protected IEnumerable<PortData> ChangeInputPortType(List<SerializableEdge> edges)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<SerializableEdge> |
edges |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<PortData> |
|
|
Improve this Doc
View Source
ChangeOutputPortType(List<SerializableEdge>)
Declaration
protected IEnumerable<PortData> ChangeOutputPortType(List<SerializableEdge> edges)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<SerializableEdge> |
edges |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<PortData> |
|
|
Improve this Doc
View Source
Disable()
Declaration
protected override void Disable()
Overrides
|
Improve this Doc
View Source
Enable()
Declaration
protected override void Enable()
Overrides
|
Improve this Doc
View Source
GetCustomRenderTexture()
Declaration
public CustomRenderTexture GetCustomRenderTexture()
Returns
Type |
Description |
UnityEngine.CustomRenderTexture |
|
|
Improve this Doc
View Source
ProcessNode(CommandBuffer)
Declaration
protected override bool ProcessNode(CommandBuffer cmd)
Parameters
Type |
Name |
Description |
UnityEngine.Rendering.CommandBuffer |
cmd |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides