Class SplatterNode
Inheritance
System.Object
SplatterNode
Assembly: Mixture.Runtime.dll
Syntax
[Documentation("\r\nDistribute a set of input textures based on parameter-based patterns.\r\nMost of the settings of this node are available in the inspector so don't hesitate to pin the node and tweak the parameters until you achieve your goal.\r\n\r\nNote that when you connect multiple textures in the \"Splat Textures\" port, they will be randomly selected at each splat operation.\r\nThe limit of different input textures you can connect is 16, after new textures will be ignored.\r\n\r\nWhen you generate the tiles, you can also choose to output the UVs of the tiles using the channel mode in the inspector, this can be useful to generate a noise based on these UVs.\r\n\r\nFor combining height based tiles, please use the **Height Tile** mode, this special mode will automatically combine the tiles based on their depth with a Z-Buffer.\r\nAll input height maps must use data > 0, every height value <= 0 will be discarded.\r\nIn **Height Tile** mode, this node will output in RG the UVs of the tiles, in B the height of the tile and in A a random value between 0 and 1.\r\nNote that to keep the depth buffer precision correct, the current max depth of a tile (value in texture + position in the z axis) is clamped between -10000 and +10000.\r\n")]
[Serializable]
public class SplatterNode : ComputeShaderNode
Fields
|
Improve this Doc
View Source
blendOperator
Declaration
public SplatterNode.Operator blendOperator
Field Value
|
Improve this Doc
View Source
depthTest
Declaration
[Header("Output Channels")]
public CompareFunction depthTest
Field Value
Type |
Description |
UnityEngine.Rendering.CompareFunction |
|
|
Improve this Doc
View Source
fixedAngles
Declaration
public Vector3 fixedAngles
Field Value
Type |
Description |
UnityEngine.Vector3 |
|
|
Improve this Doc
View Source
fixedScale
Declaration
public Vector3 fixedScale
Field Value
Type |
Description |
UnityEngine.Vector3 |
|
|
Improve this Doc
View Source
goldenRatio
Declaration
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
gridCram
Declaration
Field Value
Type |
Description |
UnityEngine.Vector2 |
|
|
Improve this Doc
View Source
gridScale
Declaration
Field Value
Type |
Description |
UnityEngine.Vector2 |
|
|
Improve this Doc
View Source
gridShift
Declaration
Field Value
Type |
Description |
UnityEngine.Vector2 |
|
|
Improve this Doc
View Source
Declaration
public SplatterNode.InputDepthChannel inputDepth
Field Value
|
Improve this Doc
View Source
inputTextures
Declaration
public List<Texture> inputTextures
Field Value
Type |
Description |
System.Collections.Generic.List<UnityEngine.Texture> |
|
|
Improve this Doc
View Source
lambda
Declaration
[Range(0F, 1F)]
public float lambda
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
maxAngles
Declaration
Field Value
Type |
Description |
UnityEngine.Vector3 |
|
|
Improve this Doc
View Source
maxScale
Declaration
Field Value
Type |
Description |
UnityEngine.Vector3 |
|
|
Improve this Doc
View Source
maxSplatCount
Declaration
[Range(1F, 1820F)]
public int maxSplatCount
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
minAngles
Declaration
Field Value
Type |
Description |
UnityEngine.Vector3 |
|
|
Improve this Doc
View Source
minScale
Declaration
Field Value
Type |
Description |
UnityEngine.Vector3 |
|
|
Improve this Doc
View Source
mode
Declaration
public SplatterNode.Mode mode
Field Value
|
Improve this Doc
View Source
output
Declaration
Field Value
Type |
Description |
UnityEngine.Texture |
|
|
Improve this Doc
View Source
positionJitter
Declaration
public Vector3 positionJitter
Field Value
Type |
Description |
UnityEngine.Vector3 |
|
|
Improve this Doc
View Source
positionOffset
Declaration
public Vector3 positionOffset
Field Value
Type |
Description |
UnityEngine.Vector3 |
|
|
Improve this Doc
View Source
radius
Declaration
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
rotation
Declaration
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
rotationMode
Declaration
public SplatterNode.RotationMode rotationMode
Field Value
|
Improve this Doc
View Source
scaleMode
Declaration
public SplatterNode.ScaleMode scaleMode
Field Value
|
Improve this Doc
View Source
sequence
Declaration
public SplatterNode.Sequence sequence
Field Value
|
Improve this Doc
View Source
stackPosition
Declaration
public Vector3 stackPosition
Field Value
Type |
Description |
UnityEngine.Vector3 |
|
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
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
|
Improve this Doc
View Source
tempRenderTextureHasDepthBuffer
Declaration
protected override bool tempRenderTextureHasDepthBuffer { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Methods
|
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
ProcessNode(CommandBuffer)
Declaration
protected override bool ProcessNode(CommandBuffer cmd)
Parameters
Type |
Name |
Description |
UnityEngine.Rendering.CommandBuffer |
cmd |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides