Show / Hide Table of Contents

Class ShaderNode

Inheritance
System.Object
MixtureNode
ShaderNode
FixedShaderNode
Implements
IUseCustomRenderTextureProcessing
Inherited Members
MixtureNode.graph
MixtureNode.rtSettings
MixtureNode.defaultRTSettings
MixtureNode.nodeWidth
MixtureNode.hasSettings
MixtureNode.hasPreview
MixtureNode.supportedDimensions
MixtureNode.defaultPreviewChannels
MixtureNode.showDefaultInspector
MixtureNode.showPreviewExposure
MixtureNode.isPreviewCollapsed
MixtureNode.onSettingsChanged
MixtureNode.beforeProcessSetup
MixtureNode.afterProcessCleanup
MixtureNode.showControlsOnHover
MixtureNode.needsInspector
MixtureNode.temporaryMaterials
MixtureNode.previewMode
MixtureNode.previewMip
MixtureNode.previewVisible
MixtureNode.previewEV100
MixtureNode.previewSlice
MixtureNode.isPinned
MixtureNode.recorder
MixtureNode.OnNodeCreated()
MixtureNode.UpdateTempRenderTexture(CustomRenderTexture, Boolean, Boolean, CustomRenderTextureUpdateMode, Boolean)
MixtureNode.GetTempTextureDimension()
MixtureNode.OnProcess(CommandBuffer)
MixtureNode.Process()
MixtureNode.RemoveObjectFromGraph(Object)
MixtureNode.GetPropertyType(Shader, Int32)
MixtureNode.GetMaterialPortDatas(Material)
MixtureNode.AssignMaterialPropertiesFromEdges(List<SerializableEdge>, Material)
MixtureNode.OnSettingsChanged()
MixtureNode.GetDefaultMaterial(Material)
MixtureNode.ResetMaterialPropertyToDefault(Material, String)
MixtureNode.GetTempMaterial(String)
Namespace: Mixture
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
public Material material
Field Value
Type Description
UnityEngine.Material
| Improve this Doc View Source

materialInputs

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
public Shader shader
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
MixtureNode.previewTexture

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
MixtureNode.Disable()
| 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

GetMaterialInputs(List<SerializableEdge>)

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
MixtureNode.ProcessNode(CommandBuffer)

Implements

IUseCustomRenderTextureProcessing
  • Improve this Doc
  • View Source
Back to top Generated by DocFX