Class ShaderNode
Inheritance
System.Object
ShaderNode
Assembly: Mixture.Runtime.dll
Syntax
[Documentation("\r\nThis node is the base node of all shader operations, it allows you to create a node with a custom behavior by putting a shader in the Shader field.\r\nNote that the shader must be compatible with Custom Render Textures, otherwise it won't work. If you have a doubt you can create a new shader by pressing the button \"New Shader\".\r\n\r\nThe node will automatically reflect the shader properties as inputs that you'll be able to connect to other nodes.\r\nThis can be especially useful to prototype a new node or just add something that wasn't in the node Library.\r\n\r\nFor more information, you can check the [Shader Nodes](../ShaderNodes.md) documentation page.\r\n")]
[Serializable]
public class ShaderNode : MixtureNode, IUseCustomRenderTextureProcessing
Fields
|
Improve this Doc
View Source
DefaultShaderName
Declaration
public static readonly string DefaultShaderName
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
material
Declaration
Field Value
Type |
Description |
UnityEngine.Material |
|
|
Improve this Doc
View Source
Declaration
public List<object> materialInputs
Field Value
Type |
Description |
System.Collections.Generic.List<System.Object> |
|
|
Improve this Doc
View Source
output
Declaration
[Tooltip("Output Texture")]
public CustomRenderTexture output
Field Value
Type |
Description |
UnityEngine.CustomRenderTexture |
|
|
Improve this Doc
View Source
shader
Declaration
Field Value
Type |
Description |
UnityEngine.Shader |
|
Properties
|
Improve this Doc
View Source
canProcess
Declaration
public override bool canProcess { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
filteredOutProperties
Declaration
protected virtual IEnumerable<string> filteredOutProperties { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
|
Improve this Doc
View Source
name
Declaration
public override string name { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
previewTexture
Declaration
public override Texture previewTexture { get; }
Property Value
Type |
Description |
UnityEngine.Texture |
|
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()
|
Improve this Doc
View Source
GetCustomRenderTextures()
Declaration
public IEnumerable<CustomRenderTexture> GetCustomRenderTextures()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<UnityEngine.CustomRenderTexture> |
|
|
Improve this Doc
View Source
Declaration
protected void GetMaterialInputs(List<SerializableEdge> edges)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<SerializableEdge> |
edges |
|
|
Improve this Doc
View Source
ListMaterialProperties(List<SerializableEdge>)
Declaration
public IEnumerable<PortData> ListMaterialProperties(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
ProcessNode(CommandBuffer)
Declaration
protected override bool ProcessNode(CommandBuffer cmd)
Parameters
Type |
Name |
Description |
UnityEngine.Rendering.CommandBuffer |
cmd |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Implements