UpdateNodeAfterDeserialization();
}
public override string documentationURL
{
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/PBR-Master-Node"; }
public sealed override void UpdateNodeAfterDeserialization()
name = "PBR Master";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Unlit-Master-Node"; }
name = "Unlit Master";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Channel-Mixer-Node"; }
const int InputSlotId = 0;
const int OutputSlotId = 1;
const string kInputSlotName = "In";
name = "Contrast";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Contrast-Node"; }
protected override MethodInfo GetFunctionToConvert()
return GetType().GetMethod("Unity_Contrast", BindingFlags.Static | BindingFlags.NonPublic);
name = "Hue";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Hue-Node"; }
[SerializeField]
private HueMode m_HueMode = HueMode.Degrees;
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Invert-Colors-Node"; }
name = "Replace Color";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Replace-Color-Node"; }
return GetType().GetMethod("Unity_ReplaceColor", BindingFlags.Static | BindingFlags.NonPublic);
name = "Saturation";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Saturation-Node"; }
return GetType().GetMethod("Unity_Saturation", BindingFlags.Static | BindingFlags.NonPublic);
name = "White Balance";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/White-Balance-Node"; }
return GetType().GetMethod("Unity_WhiteBalance", BindingFlags.Static | BindingFlags.NonPublic);
name = "Blend";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Blend-Node"; }
string GetCurrentBlendName()
return System.Enum.GetName(typeof(BlendMode), m_BlendMode);
name = "Dither";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Dither-Node"; }
return GetType().GetMethod("Unity_Dither", BindingFlags.Static | BindingFlags.NonPublic);
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Channel-Mask-Node"; }
name = "Color Mask";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Color-Mask-Node"; }
return GetType().GetMethod("Unity_ColorMask", BindingFlags.Static | BindingFlags.NonPublic);
name = "Normal Blend";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Normal-Blend-Node"; }
return GetType().GetMethod("Unity_NormalBlend", BindingFlags.Static | BindingFlags.NonPublic);
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Normal-Create-Node"; }
string GetFunctionName()
return string.Format("Unity_NormalCreate_{0}", precision);
name = "Normal Strength";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Normal-Strength-Node"; }
return GetType().GetMethod("Unity_NormalStrength", BindingFlags.Static | BindingFlags.NonPublic);
name = "Normal Unpack";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Normal-Unpack-Node"; }
return GetType().GetMethod("Unity_NormalUnpack", BindingFlags.Static | BindingFlags.NonPublic);
name = "Colorspace Conversion";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Colorspace-Conversion-Node"; }
ColorspaceConversion m_Conversion = new ColorspaceConversion(Colorspace.RGB, Colorspace.RGB);
name = "Combine";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Combine-Node"; }
return GetType().GetMethod("Unity_Combine", BindingFlags.Static | BindingFlags.NonPublic);
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Flip-Node"; }
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Split-Node"; }
AddSlot(new DynamicVectorMaterialSlot(InputSlotId, kInputSlotName, kInputSlotName, SlotType.Input, Vector4.zero));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Swizzle-Node"; }
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Boolean-Node"; }
AddSlot(new BooleanMaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, false));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Color-Node"; }
Color m_Color = new Color(UnityEngine.Color.clear, ColorMode.Default);
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Absolute-Node"; }
AddSlot(new Vector1MaterialSlot(kOutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, 0));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Integer-Node"; }
AddSlot(new Vector1MaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, 0));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Slider-Node"; }
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Time-Node"; }
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Vector-1-Node"; }
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Vector-2-Node"; }
AddSlot(new Vector2MaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, Vector4.zero));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Vector-3-Node"; }
AddSlot(new Vector3MaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, Vector4.zero));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Vector-4-Node"; }
AddSlot(new Vector4MaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, Vector4.zero));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Bitangent-Vector-Node"; }
AddSlot(new Vector3MaterialSlot(kOutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, new Vector4(0, 0, 1)));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Normal-Vector-Node"; }
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Position-Node"; }
AddSlot(new Vector3MaterialSlot(
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Screen-Position-Node"; }
private ScreenSpaceType m_ScreenSpaceType = ScreenSpaceType.Default;
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Tangent-Vector-Node"; }
AddSlot(new Vector3MaterialSlot(kOutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, new Vector4(0, 0, 1, 1)));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/UV-Node"; }
public override void UpdateNodeAfterDeserialization()
AddSlot(new Vector4MaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, Vector2.zero));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Vertex-Color-Node"; }
AddSlot(new Vector4MaterialSlot(kOutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, Vector4.one));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/View-Direction-Node"; }
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Matrix-2x2-Node"; }
AddSlot(new Matrix2MaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Matrix-3x3-Node"; }
AddSlot(new Matrix3MaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Matrix-4x4-Node"; }
AddSlot(new Matrix4MaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Transformation-Matrix-Node"; }
AddSlot(new Matrix4MaterialSlot(kOutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Dielectric-Specular-Node"; }
DielectricMaterial m_Material = new DielectricMaterial(DielectricMaterialType.Common, 0.5f, 1.0f);
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Metal-Reflectance-Node"; }
private MetalMaterialType m_Material = MetalMaterialType.Iron;
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Property-Node"; }
private void UpdateNode()
var graph = owner as AbstractMaterialGraph;
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Ambient-Node"; }
AddSlot(new ColorRGBMaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, Vector4.zero));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Camera-Node"; }
AddSlot(new Vector3MaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, Vector3.zero));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Fog-Node"; }
const int OutputSlotId = 0;
const int OutputSlot1Id = 1;
const string k_OutputSlotName = "Color";
name = "Light Probe";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Light-Probe-Node"; }
return GetType().GetMethod("Unity_LightProbe", BindingFlags.Static | BindingFlags.NonPublic);
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Object-Node"; }
name = "Reflection Probe";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Reflection-Probe-Node"; }
public override PreviewMode previewMode
get
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Screen-Node"; }
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Cubemap-Asset-Node"; }
AddSlot(new CubemapMaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Sample-Cubemap-Node"; }
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Sample-Texture-2D-Node"; }
private TextureType m_TextureType = TextureType.Default;
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Sampler-State-Node"; }
public override bool hasPreview { get { return false; } }
private const int kOutputSlotId = 0;
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Texture-2D-Asset-Node"; }
AddSlot(new Texture2DMaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output));
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Matrix-Construction-Node"; }
MatrixAxis m_Axis;
name = "Matrix Determinant";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Matrix-Determinant-Node"; }
return GetType().GetMethod("Unity_MatrixDeterminant", BindingFlags.Static | BindingFlags.NonPublic);
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Matrix-Split-Node"; }
name = "Matrix Transpose";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Matrix-Transpose-Node"; }
public override bool hasPreview
get { return false; }
name = "Ceiling";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Ceiling-Node"; }
return GetType().GetMethod("Unity_Ceiling", BindingFlags.Static | BindingFlags.NonPublic);
name = "Floor";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Floor-Node"; }
return GetType().GetMethod("Unity_Floor", BindingFlags.Static | BindingFlags.NonPublic);
name = "Round";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Round-Node"; }
return GetType().GetMethod("Unity_Round", BindingFlags.Static | BindingFlags.NonPublic);
name = "Sign";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Sign-Node"; }
return GetType().GetMethod("Unity_Sign", BindingFlags.Static | BindingFlags.NonPublic);
name = "Step";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Step-Node"; }
return GetType().GetMethod("Unity_Step", BindingFlags.Static | BindingFlags.NonPublic);
name = "Truncate";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Truncate-Node"; }
return GetType().GetMethod("Unity_Truncate", BindingFlags.Static | BindingFlags.NonPublic);
name = "Arccosine";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Arccosine-Node"; }
return GetType().GetMethod("Unity_Arccosine", BindingFlags.Static | BindingFlags.NonPublic);
name = "Arcsine";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Arcsine-Node"; }
return GetType().GetMethod("Unity_Arcsine", BindingFlags.Static | BindingFlags.NonPublic);
name = "Arctangent2";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Arctangent2-Node"; }
return GetType().GetMethod("Unity_Arctangent2", BindingFlags.Static | BindingFlags.NonPublic);
name = "Arctangent";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Arctangent-Node"; }
return GetType().GetMethod("Unity_Arctangent", BindingFlags.Static | BindingFlags.NonPublic);
name = "Cosine";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Cosine-Node"; }
return GetType().GetMethod("Unity_Cosine", BindingFlags.Static | BindingFlags.NonPublic);
name = "Degrees To Radians";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Degrees-To-Radians-Node"; }
return GetType().GetMethod("Unity_DegreesToRadians", BindingFlags.Static | BindingFlags.NonPublic);
name = "Hyperbolic Cosine";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Hyperbolic-Cosine-Node"; }
return GetType().GetMethod("Unity_HyperbolicCosine", BindingFlags.Static | BindingFlags.NonPublic);
name = "Hyperbolic Sine";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Hyperbolic-Sine-Node"; }
return GetType().GetMethod("Unity_HyperbolicSine", BindingFlags.Static | BindingFlags.NonPublic);
name = "Hyperbolic Tangent";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Hyperbolic-Tangent-Node"; }
return GetType().GetMethod("Unity_HyperbolicTangent", BindingFlags.Static | BindingFlags.NonPublic);
name = "Radians To Degrees";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Radians-To-Degrees-Node"; }
return GetType().GetMethod("Unity_RadiansToDegrees", BindingFlags.Static | BindingFlags.NonPublic);
name = "Sine";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Sine-Node"; }
return GetType().GetMethod("Unity_Sine", BindingFlags.Static | BindingFlags.NonPublic);
name = "Tangent";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Tangent-Node"; }
return GetType().GetMethod("Unity_Tangent", BindingFlags.Static | BindingFlags.NonPublic);
name = "Cross Product";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Cross-Product-Node"; }
return GetType().GetMethod("Unity_CrossProduct", BindingFlags.Static | BindingFlags.NonPublic);
name = "Distance";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Distance-Node"; }
return GetType().GetMethod("Unity_Distance", BindingFlags.Static | BindingFlags.NonPublic);
name = "Dot Product";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Dot-Product-Node"; }
return GetType().GetMethod("Unity_DotProduct", BindingFlags.Static | BindingFlags.NonPublic);
name = "Fresnel Effect";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Fresnel-Effect-Node"; }
get { return PreviewMode.Preview3D; }
name = "Projection";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Projection-Node"; }
return GetType().GetMethod("Unity_Projection", BindingFlags.Static | BindingFlags.NonPublic);
name = "Reflection";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Reflection-Node"; }
return GetType().GetMethod("Unity_Reflection", BindingFlags.Static | BindingFlags.NonPublic);
name = "Rejection";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Rejection-Node"; }
return GetType().GetMethod("Unity_Rejection", BindingFlags.Static | BindingFlags.NonPublic);
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Transform-Node"; }
CoordinateSpaceConversion m_Conversion = new CoordinateSpaceConversion(CoordinateSpace.Object, CoordinateSpace.World);
name = "Checkerboard";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Checkerboard-Node"; }
return GetType().GetMethod("Unity_Checkerboard", BindingFlags.Static | BindingFlags.NonPublic);
name = "Gradient Noise";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Gradient-Noise-Node"; }
return GetType().GetMethod("Unity_GradientNoise", BindingFlags.Static | BindingFlags.NonPublic);
name = "Simple Noise";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Simple-Noise-Node"; }
return GetType().GetMethod("Unity_SimpleNoise", BindingFlags.Static | BindingFlags.NonPublic);
name = "Voronoi";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Voronoi-Node"; }
return GetType().GetMethod("Unity_Voronoi", BindingFlags.Static | BindingFlags.NonPublic);
name = "Ellipse";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Ellipse-Node"; }
return GetType().GetMethod("Unity_Ellipse", BindingFlags.Static | BindingFlags.NonPublic);
name = "Polygon";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Polygon-Node"; }
return GetType().GetMethod("Unity_Polygon", BindingFlags.Static | BindingFlags.NonPublic);
name = "Rectangle";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Rectangle-Node"; }
return GetType().GetMethod("Unity_Rectangle", BindingFlags.Static | BindingFlags.NonPublic);
name = "Rounded Rectangle";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Rounded-Rectangle-Node"; }
return GetType().GetMethod("Unity_RoundedRectangle", BindingFlags.Static | BindingFlags.NonPublic);
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Flipbook-Node"; }
const int UVSlotId = 0;
const int WidthSlotId = 1;
const int HeightSlotId = 2;
name = "Polar Coordinates";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Polar-Coordinates-Node"; }
return GetType().GetMethod("Unity_PolarCoordinates", BindingFlags.Static | BindingFlags.NonPublic);
name = "Radial Shear";
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Radial-Shear-Node"; }
return GetType().GetMethod("Unity_RadialShear", BindingFlags.Static | BindingFlags.NonPublic);