Skip to content

Commit 2ac97af

Browse files
Add preview doc to nodes A-C. (#7805)
* Add preview doc to nodes A-C. * Add preview doc to nodes D * Add preview doc to nodes E * Add preview doc to nodes F-H * iAdd preview doc to nodes I-L * Add preview doc to node (all others) * Fix NormalFromTexture from PR review
1 parent c694ed6 commit 2ac97af

File tree

192 files changed

+423
-128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+423
-128
lines changed

com.unity.sg2/Editor/GraphDeltaRegistry/FunctionDefinitions/StandardDefinitions/Artistic/Adjustment/ContrastNode.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ internal class ContrastNode : IStandardNode
5454
displayName : "Contrast",
5555
tooltip: "Make the darks darker and the brights brighter.",
5656
category: "Artistic/Adjustment",
57+
description: "pkg://Documentation~/previews/Contrast.md",
5758
synonyms: new string[1] { "intensity" },
5859
selectableFunctions: new()
5960
{

com.unity.sg2/Editor/GraphDeltaRegistry/FunctionDefinitions/StandardDefinitions/Artistic/Adjustment/HueNode.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Collections.Generic;
1+
using System;
22
using Usage = UnityEditor.ShaderGraph.GraphDelta.GraphType.Usage;
33

44
namespace UnityEditor.ShaderGraph.Defs
@@ -101,7 +101,8 @@ internal class HueNode : IStandardNode
101101
Name,
102102
tooltip: "Changes the hue of a color.",
103103
category: "Artistic/Adjustment",
104-
synonyms: new string[0] { },
104+
synonyms: Array.Empty<string>(),
105+
description: "pkg://Documentation~/previews/Hue.md",
105106
selectableFunctions: new()
106107
{
107108
{ "Degrees", "Degrees" },

com.unity.sg2/Editor/GraphDeltaRegistry/FunctionDefinitions/StandardDefinitions/Artistic/Adjustment/ReplaceColorNode.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using Usage = UnityEditor.ShaderGraph.GraphDelta.GraphType.Usage;
23

34
namespace UnityEditor.ShaderGraph.Defs
@@ -27,7 +28,8 @@ internal class ReplaceColorNode : IStandardNode
2728
displayName: "Replace Color",
2829
tooltip: "Converts the chosen color from an input to another color value.",
2930
category: "Artistic/Adjustment",
30-
synonyms: new string[0],
31+
synonyms: Array.Empty<string>(),
32+
description: "pkg://Documentation~/previews/ReplaceColor.md",
3133
parameters: new ParameterUIDescriptor[6]
3234
{
3335
new ParameterUIDescriptor(

com.unity.sg2/Editor/GraphDeltaRegistry/FunctionDefinitions/StandardDefinitions/Artistic/Adjustment/SaturationNode.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using Usage = UnityEditor.ShaderGraph.GraphDelta.GraphType.Usage;
23

34
namespace UnityEditor.ShaderGraph.Defs
@@ -31,7 +32,8 @@ internal class SaturationNode : IStandardNode
3132
displayName: "Saturation",
3233
tooltip: "Adjusts the color intensity.",
3334
category: "Artistic/Adjustment",
34-
synonyms: new string[0],
35+
synonyms: Array.Empty<string>(),
36+
description: "pkg://Documentation~/previews/Saturation.md",
3537
parameters: new ParameterUIDescriptor[3] {
3638
new ParameterUIDescriptor(
3739
name: "In",

com.unity.sg2/Editor/GraphDeltaRegistry/FunctionDefinitions/StandardDefinitions/Artistic/Adjustment/WhiteBalanceNode.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using Usage = UnityEditor.ShaderGraph.GraphDelta.GraphType.Usage;
23

34
namespace UnityEditor.ShaderGraph.Defs
@@ -59,7 +60,8 @@ internal class WhiteBalanceNode : IStandardNode
5960
displayName: "White Balance",
6061
tooltip: "adjusts temperature and tint",
6162
category: "Artistic/Adjustment",
62-
synonyms: new string[0],
63+
synonyms: Array.Empty<string>(),
64+
description: "pkg://Documentation~/previews/WhiteBalance.md",
6365
parameters: new ParameterUIDescriptor[4] {
6466
new ParameterUIDescriptor(
6567
name: "In",

com.unity.sg2/Editor/GraphDeltaRegistry/FunctionDefinitions/StandardDefinitions/Artistic/Blend/BlendNode.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ internal class BlendNode : IStandardNode
319319
tooltip: "mixes a base and blend color with the selected mode",
320320
category: "Artistic/Blend",
321321
synonyms: new string[20] { "burn", "darken", "difference", "dodge", "divide", "exclusion", "hard light", "hard mix", "linear burn", "linear dodge", "linear light", "multiply", "negate", "overlay", "pin light", "screen", "soft light", "subtract", "vivid light", "overwrite" },
322+
description: "pkg://Documentation~/previews/Blend.md",
322323
selectableFunctions: new()
323324
{
324325
{ "Burn", "Burn" },

com.unity.sg2/Editor/GraphDeltaRegistry/FunctionDefinitions/StandardDefinitions/Artistic/Filter/DitherNode.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ internal class DitherNode : IStandardNode
3535
tooltip: "converts a grayscale value to a black and white value with a dither pattern",
3636
category: "Artistic/Filter",
3737
synonyms: new string[4] { "half tone", "noise", "diffusion", "bayer grid" },
38+
description: "pkg://Documentation~/previews/Dither.md",
3839
parameters: new ParameterUIDescriptor[3] {
3940
new ParameterUIDescriptor(
4041
name: "In",

com.unity.sg2/Editor/GraphDeltaRegistry/FunctionDefinitions/StandardDefinitions/Artistic/Filter/FadeTransitionNode.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using Usage = UnityEditor.ShaderGraph.GraphDelta.GraphType.Usage;
23

34
namespace UnityEditor.ShaderGraph.Defs
@@ -26,7 +27,8 @@ internal class FadeTransitionNode : IStandardNode
2627
displayName: "Fade Transition",
2728
tooltip: "Adds noise for variation while a function transitions from on to off in a graph.",
2829
category: "Artistic/Filter",
29-
synonyms: new string[0],
30+
synonyms: Array.Empty<string>(),
31+
description: "pkg://Documentation~/previews/FadeTransition.md",
3032
parameters: new ParameterUIDescriptor[4] {
3133
new ParameterUIDescriptor(
3234
name: "NoiseValue",

com.unity.sg2/Editor/GraphDeltaRegistry/FunctionDefinitions/StandardDefinitions/Artistic/Mask/ColorMaskNode.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ internal class ColorMaskNode : IStandardNode
2828
tooltip: "Creates a mask where the input values match the selected color.",
2929
category: "Artistic/Mask",
3030
synonyms: new string[1] { "intensity" },
31+
description: "pkg://Documentation~/previews/ColorMask.md",
3132
parameters: new ParameterUIDescriptor[5] {
3233
new ParameterUIDescriptor(
3334
name: "In",

com.unity.sg2/Editor/GraphDeltaRegistry/FunctionDefinitions/StandardDefinitions/Artistic/Normal/NormalBlendNode.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ internal class NormalBlendNode : IStandardNode
7676
category: "Artistic/Normal",
7777
synonyms: new string[5] { "RNM", "whiteout", "blend", "mix", "combine" },
7878
displayName: "Normal Blend",
79-
selectableFunctions: new()
79+
description: "pkg://Documentation~/previews/NormalBlend.md",
80+
selectableFunctions: new Dictionary<string, string>
8081
{
8182
{ "Default", "Whiteout" },
8283
{ "Reoriented", "Reoriented" },

0 commit comments

Comments
 (0)