浏览代码

Merge branch 'hackweek2017' of https://github.com/stramit/MaterialGraph into hackweek2017

/main
vlad 8 年前
当前提交
500e0026
共有 150 个文件被更改,包括 460 次插入291 次删除
  1. 6
      MaterialGraphProject/Assets/Andre/New Material.mat
  2. 2
      MaterialGraphProject/Assets/Andre/New Shader Graph.ShaderGraph
  3. 4
      MaterialGraphProject/Assets/Brandon/NoiseNode.cs
  4. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/DegreesToRadiansNode.cs
  5. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/RadiansToDegreesNode.cs
  6. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/ReciprocalNode.cs
  7. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/AddNode.cs
  8. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/DivNode.cs
  9. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/DotNode.cs
  10. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/FresnelNode.cs
  11. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/MultiplyNode.cs
  12. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/ReflectNode.cs
  13. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/SubtractNode.cs
  14. 9
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math.meta
  15. 9
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced.meta
  16. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/AbsoluteNode.cs
  17. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/LengthNode.cs
  18. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/NormalizeNode.cs
  19. 26
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/PosterizeNode.cs
  20. 9
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic.meta
  21. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/PowerNode.cs
  22. 9
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Interpolation.meta
  23. 44
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Interpolation/InverseLerpNode.cs
  24. 28
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Interpolation/LerpNode.cs
  25. 28
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Interpolation/SmoothStepNode.cs
  26. 9
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Range.meta
  27. 28
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Range/ClampNode.cs
  28. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Range/MaxNode.cs
  29. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Range/MinNode.cs
  30. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Range/SaturateNode.cs
  31. 9
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Round.meta
  32. 9
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry.meta
  33. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ATan2Node.cs
  34. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ArcCosNode.cs
  35. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ArcSinNode.cs
  36. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ArcTanNode.cs
  37. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/CosNode.cs
  38. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/SinCosNode.cs
  39. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/SinNode.cs
  40. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/TanNode.cs
  41. 9
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector.meta
  42. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/CrossNode.cs
  43. 13
      MaterialGraphProject/Assets/Brandon/ATan2Node.cs
  44. 13
      MaterialGraphProject/Assets/Brandon/ArcCosNode.cs
  45. 13
      MaterialGraphProject/Assets/Brandon/ArcSinNode.cs
  46. 13
      MaterialGraphProject/Assets/Brandon/ArcTanNode.cs
  47. 13
      MaterialGraphProject/Assets/Brandon/CosNode.cs
  48. 13
      MaterialGraphProject/Assets/Brandon/CrossNode.cs
  49. 13
      MaterialGraphProject/Assets/Brandon/SinCosNode.cs
  50. 13
      MaterialGraphProject/Assets/Brandon/TanNode.cs
  51. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/AbsoluteNode.cs
  52. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/ClampNode.cs
  53. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/LengthNode.cs
  54. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/LerpNode.cs
  55. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/MaxNode.cs
  56. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/MinNode.cs
  57. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/NormalizeNode.cs
  58. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/PowerNode.cs
  59. 26
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/QuantizeNode.cs
  60. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/SinNode.cs
  61. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/SmoothStepNode.cs
  62. 9
      MaterialGraphProject/Assets/Vlad.meta
  63. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ATan2Node.cs.meta
  64. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ArcCosNode.cs.meta
  65. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ArcSinNode.cs.meta
  66. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ArcTanNode.cs.meta
  67. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/CosNode.cs.meta
  68. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/CrossNode.cs.meta
  69. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/DegreesToRadiansNode.cs
  70. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/DegreesToRadiansNode.cs.meta
  71. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/RadiansToDegreesNode.cs
  72. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/RadiansToDegreesNode.cs.meta
  73. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/ReciprocalNode.cs
  74. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/ReciprocalNode.cs.meta
  75. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/SinCosNode.cs.meta
  76. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/TanNode.cs.meta
  77. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/NegateNode.cs
  78. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/NegateNode.cs.meta
  79. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/AddNode.cs
  80. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/AddNode.cs.meta
  81. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/AbsoluteNode.cs.meta
  82. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Range/ClampNode.cs.meta
  83. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/DivNode.cs
  84. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/DivNode.cs.meta
  85. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/DotNode.cs
  86. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/DotNode.cs.meta
  87. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/FresnelNode.cs
  88. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/FresnelNode.cs.meta
  89. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/LengthNode.cs.meta

6
MaterialGraphProject/Assets/Andre/New Material.mat


m_Texture: {fileID: 8900000, guid: f7111c407ddfe4109af9703cb740eaf9, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Texture_02e4013b_5c99_456a_a8d8_cafbb1dfc0da_Uniform:
m_Texture: {fileID: 2800000, guid: 5a5e07ee958edbd468227e1d9ac4726a, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Texture: {fileID: 2800000, guid: 6e8d12f68bae2294da814f9d4c81b29a, type: 3}
m_Texture: {fileID: 10305, guid: 0000000000000000f000000000000000, type: 0}
m_Scale: {x: 1, y: 2}
m_Offset: {x: 0, y: 0}
- _BumpMap:

2
MaterialGraphProject/Assets/Andre/New Shader Graph.ShaderGraph
文件差异内容过多而无法显示
查看文件

4
MaterialGraphProject/Assets/Brandon/NoiseNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Input/Procedural/Noise Node")]
[Title("Procedural/Noise")]
name = "NoiseNode";
name = "Noise";
}
protected override string GetFunctionName()

2
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/DegreesToRadiansNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/Degrees To Radians Node")]
[Title("Math/Trigonometry/Degrees To Radians")]
public class DegreesToRadiansNode : Function1Input
{
public DegreesToRadiansNode()

2
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/RadiansToDegreesNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/Radians To Degrees Node")]
[Title("Math/Trigonometry/Radians To Degrees")]
public class RadiansToDegreesNode : Function1Input
{
public RadiansToDegreesNode()

4
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/ReciprocalNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Advanced/Reciprocal Node")]
[Title("Math/Advanced/Reciprocal")]
name = "ReciprocalNode";
name = "Reciprocal";
}
protected override string GetFunctionName()

4
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/AddNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Add Node")]
[Title("Math/Basic/Add")]
name = "AddNode";
name = "Add";
}
protected override string GetFunctionName()

4
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/DivNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Div Node")]
[Title("Math/Basic/Divide")]
name = "DivNode";
name = "Divide";
}
protected override string GetFunctionName() {return "unity_div_" + precision; }

4
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/DotNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Dot Node")]
[Title("Math/Vector/Dot Product")]
name = "DotNode";
name = "DotProduct";
}
protected override string GetFunctionName()

4
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/FresnelNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Fresnel Node")]
[Title("Math/Vector/Fresnel")]
name = "FresnelNode";
name = "Fresnel";
}
protected override MaterialSlot GetInputSlot1()

4
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/MultiplyNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Multiply Node")]
[Title("Math/Basic/Multiply")]
name = "MultiplyNode";
name = "Multiply";
}
protected override string GetFunctionName()

4
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/ReflectNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Reflect Node")]
[Title("Math/Vector/Reflect")]
name = "ReflectNode";
name = "Reflect";
}
protected override string GetInputSlot1Name() {return "Normal"; }

4
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/SubtractNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Subtract Node")]
[Title("Math/Basic/Subtract")]
name = "SubtractNode";
name = "Subtract";
}
protected override string GetFunctionName() {return "unity_subtract_" + precision; }

9
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math.meta


fileFormatVersion: 2
guid: e63f07e66d070412bb6e9582ca1eba72
folderAsset: yes
timeCreated: 1495526358
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

9
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced.meta


fileFormatVersion: 2
guid: 198ec765a01574320a8199338d27d9f1
folderAsset: yes
timeCreated: 1495526831
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/AbsoluteNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Advanced/Absolute")]
public class AbsoluteNode : Function1Input
{
public AbsoluteNode()
{
name = "Absolute";
}
protected override string GetFunctionName() {return "abs"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/LengthNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Advanced/Length")]
public class LengthNode : Function1Input
{
public LengthNode()
{
name = "Length";
}
protected override string GetFunctionName() { return "length"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/NormalizeNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Advanced/Normalize")]
class NormalizeNode : Function1Input
{
public NormalizeNode()
{
name = "Normalize";
}
protected override string GetFunctionName() { return "normalize"; }
}
}

26
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/PosterizeNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Advanced/Posterize")]
class PosterizeNode : Function2Input, IGeneratesFunction
{
public PosterizeNode()
{
name = "Posterize";
}
protected override string GetFunctionName() {return "unity_posterize_" + precision; }
public void GenerateNodeFunction(ShaderGenerator visitor, GenerationMode generationMode)
{
var outputString = new ShaderGenerator();
outputString.AddShaderChunk(GetFunctionPrototype("input", "stepsize"), false);
outputString.AddShaderChunk("{", false);
outputString.Indent();
outputString.AddShaderChunk("return floor(input / stepsize) * stepsize;", false);
outputString.Deindent();
outputString.AddShaderChunk("}", false);
visitor.AddShaderChunk(outputString.GetShaderString(0), true);
}
}
}

9
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic.meta


fileFormatVersion: 2
guid: 4120c70d7c1a34d92b74137bf0b1bc67
folderAsset: yes
timeCreated: 1495526365
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/PowerNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Basic/Power")]
public class PowerNode : Function2Input
{
public PowerNode()
{
name = "Power";
}
protected override string GetFunctionName() { return "pow"; }
}
}

9
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Interpolation.meta


fileFormatVersion: 2
guid: 458e098c89ad64ed3a48cb5f63a5a498
folderAsset: yes
timeCreated: 1495529238
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

44
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Interpolation/InverseLerpNode.cs


namespace UnityEngine.MaterialGraph
{
[Title ("Math/Interpolation/InverseLerp")]
public class InverseLerpNode : Function3Input, IGeneratesFunction
{
public InverseLerpNode ()
{
name = "InverseLerp";
}
protected override string GetFunctionName ()
{
return "unity_inverselerp_" + precision;
}
protected override string GetInputSlot1Name()
{
return "InputA";
}
protected override string GetInputSlot2Name()
{
return "InputB";
}
protected override string GetInputSlot3Name()
{
return "T";
}
public void GenerateNodeFunction (ShaderGenerator visitor, GenerationMode generationMode)
{
var outputString = new ShaderGenerator ();
outputString.AddShaderChunk (GetFunctionPrototype ("arg1", "arg2", "arg3"), false);
outputString.AddShaderChunk ("{", false);
outputString.Indent ();
outputString.AddShaderChunk ("return (arg3 - arg1)/(arg2 - arg1);", false);
outputString.Deindent ();
outputString.AddShaderChunk ("}", false);
visitor.AddShaderChunk (outputString.GetShaderString (0), true);
}
}
}

28
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Interpolation/LerpNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Interpolation/Lerp")]
public class LerpNode : Function3Input
{
public LerpNode()
{
name = "Lerp";
}
protected override string GetInputSlot1Name()
{
return "InputA";
}
protected override string GetInputSlot2Name()
{
return "InputB";
}
protected override string GetInputSlot3Name()
{
return "T";
}
protected override string GetFunctionName() {return "lerp"; }
}
}

28
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Interpolation/SmoothStepNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Interpolation/SmoothStep")]
class SmoothStepNode : Function3Input
{
public SmoothStepNode()
{
name = "SmoothStep";
}
protected override string GetInputSlot1Name()
{
return "InputA";
}
protected override string GetInputSlot2Name()
{
return "InputB";
}
protected override string GetInputSlot3Name()
{
return "T";
}
protected override string GetFunctionName() {return "smoothstep"; }
}
}

9
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Range.meta


fileFormatVersion: 2
guid: 2018cd81f24ba46748d8b85c8f289f4f
folderAsset: yes
timeCreated: 1495527047
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

28
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Range/ClampNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Range/Clamp")]
public class ClampNode : Function3Input
{
public ClampNode()
{
name = "Clamp";
}
protected override string GetInputSlot1Name()
{
return "Input";
}
protected override string GetInputSlot2Name()
{
return "Min";
}
protected override string GetInputSlot3Name()
{
return "Max";
}
protected override string GetFunctionName() {return "clamp"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Range/MaxNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Range/Maximum")]
public class MaximumNode : Function2Input
{
public MaximumNode()
{
name = "Maximum";
}
protected override string GetFunctionName() { return "max"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Range/MinNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Range/Minimum")]
public class MinimumNode : Function2Input
{
public MinimumNode()
{
name = "Minimum";
}
protected override string GetFunctionName() { return "min"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Range/SaturateNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Range/Saturate")]
class SaturateNode : Function1Input
{
public SaturateNode()
{
name = "Saturate";
}
protected override string GetFunctionName() { return "saturate"; }
}
}

9
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Round.meta


fileFormatVersion: 2
guid: 4da29d4d0744f43f8aaa921918f1f879
folderAsset: yes
timeCreated: 1495530810
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

9
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry.meta


fileFormatVersion: 2
guid: 28b2b06f6ff88404c8c0d855b9599203
folderAsset: yes
timeCreated: 1495529705
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ATan2Node.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/ArcTan2")]
public class ATan2Node : Function2Input
{
public ATan2Node()
{
name = "ArcTan2";
}
protected override string GetFunctionName() { return "atan2"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ArcCosNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/ArcCos")]
public class ACosNode : Function1Input
{
public ACosNode()
{
name = "ArcCos";
}
protected override string GetFunctionName() { return "acos"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ArcSinNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/ArcSin")]
public class ASinNode : Function1Input
{
public ASinNode()
{
name = "ArcSin";
}
protected override string GetFunctionName() { return "asin"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ArcTanNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/ArcTan")]
public class ATanNode : Function1Input
{
public ATanNode()
{
name = "ArcTan";
}
protected override string GetFunctionName() { return "atan"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/CosNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/Cos")]
public class CosNode : Function1Input
{
public CosNode()
{
name = "Cos";
}
protected override string GetFunctionName() { return "cos"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/SinCosNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/SinCos")]
public class SinCosNode : Function1Input
{
public SinCosNode()
{
name = "SinCos";
}
protected override string GetFunctionName() { return "cos"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/SinNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/Sin")]
class SinNode : Function1Input
{
public SinNode()
{
name = "Sin";
}
protected override string GetFunctionName() {return "sin"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/TanNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/Tan")]
public class TanNode : Function1Input
{
public TanNode()
{
name = "Tan";
}
protected override string GetFunctionName() { return "tan"; }
}
}

9
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector.meta


fileFormatVersion: 2
guid: c3becf597e5084fe8825c0ec59a22201
folderAsset: yes
timeCreated: 1495527930
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/CrossNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Vector/Cross Product")]
public class CrossNode : Function2Input
{
public CrossNode()
{
name = "CrossProduct";
}
protected override string GetFunctionName() { return "cross"; }
}
}

13
MaterialGraphProject/Assets/Brandon/ATan2Node.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/ArcTan2 Node")]
public class ATan2Node : Function2Input
{
public ATan2Node()
{
name = "ATan2Node";
}
protected override string GetFunctionName() { return "atan2"; }
}
}

13
MaterialGraphProject/Assets/Brandon/ArcCosNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/ArcCos Node")]
public class ACosNode : Function1Input
{
public ACosNode()
{
name = "ACosNode";
}
protected override string GetFunctionName() { return "acos"; }
}
}

13
MaterialGraphProject/Assets/Brandon/ArcSinNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/ArcSin Node")]
public class ASinNode : Function1Input
{
public ASinNode()
{
name = "ASinNode";
}
protected override string GetFunctionName() { return "asin"; }
}
}

13
MaterialGraphProject/Assets/Brandon/ArcTanNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/ArcTan Node")]
public class ATanNode : Function1Input
{
public ATanNode()
{
name = "ATanNode";
}
protected override string GetFunctionName() { return "atan"; }
}
}

13
MaterialGraphProject/Assets/Brandon/CosNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/Cos Node")]
public class CosNode : Function1Input
{
public CosNode()
{
name = "CosNode";
}
protected override string GetFunctionName() { return "cos"; }
}
}

13
MaterialGraphProject/Assets/Brandon/CrossNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Vector/Cross Node")]
public class CrossNode : Function2Input
{
public CrossNode()
{
name = "CrossNode";
}
protected override string GetFunctionName() { return "cross"; }
}
}

13
MaterialGraphProject/Assets/Brandon/SinCosNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/SinCos Node")]
public class SinCosNode : Function1Input
{
public SinCosNode()
{
name = "SinCosNode";
}
protected override string GetFunctionName() { return "cos"; }
}
}

13
MaterialGraphProject/Assets/Brandon/TanNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Trigonometry/Tan Node")]
public class TanNode : Function1Input
{
public TanNode()
{
name = "TanNode";
}
protected override string GetFunctionName() { return "tan"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/AbsoluteNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Absolute Node")]
public class AbsoluteNode : Function1Input
{
public AbsoluteNode()
{
name = "AbsoluteNode";
}
protected override string GetFunctionName() {return "abs"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/ClampNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Clamp Node")]
public class ClampNode : Function3Input
{
public ClampNode()
{
name = "ClampNode";
}
protected override string GetFunctionName() {return "clamp"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/LengthNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Length Node")]
public class LengthNode : Function1Input
{
public LengthNode()
{
name = "LengthNode";
}
protected override string GetFunctionName() { return "length"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/LerpNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Lerp Node")]
public class LerpNode : Function3Input
{
public LerpNode()
{
name = "LerpNode";
}
protected override string GetFunctionName() {return "lerp"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/MaxNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Maximum Node")]
public class MaximumNode : Function2Input
{
public MaximumNode()
{
name = "MaximumNode";
}
protected override string GetFunctionName() { return "max"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/MinNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Minimum Node")]
public class MinimumNode : Function2Input
{
public MinimumNode()
{
name = "MinimumNode";
}
protected override string GetFunctionName() { return "min"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/NormalizeNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Normalize Node")]
class NormalizeNode : Function1Input
{
public NormalizeNode()
{
name = "NormalizeNode";
}
protected override string GetFunctionName() { return "normalize"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/PowerNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Power Node")]
public class PowerNode : Function2Input
{
public PowerNode()
{
name = "PowerNode";
}
protected override string GetFunctionName() { return "pow"; }
}
}

26
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/QuantizeNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Quantize Node")]
class QuantizeNode : Function2Input, IGeneratesFunction
{
public QuantizeNode()
{
name = "QuantizeNode";
}
protected override string GetFunctionName() {return "unity_quantize_" + precision; }
public void GenerateNodeFunction(ShaderGenerator visitor, GenerationMode generationMode)
{
var outputString = new ShaderGenerator();
outputString.AddShaderChunk(GetFunctionPrototype("input", "stepsize"), false);
outputString.AddShaderChunk("{", false);
outputString.Indent();
outputString.AddShaderChunk("return floor(input / stepsize) * stepsize;", false);
outputString.Deindent();
outputString.AddShaderChunk("}", false);
visitor.AddShaderChunk(outputString.GetShaderString(0), true);
}
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/SinNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/Sin Node")]
class SinNode : Function1Input
{
public SinNode()
{
name = "SinNode";
}
protected override string GetFunctionName() {return "sin"; }
}
}

13
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/SmoothStepNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("Math/SmoothStep Node")]
class SmoothStepNode : Function3Input
{
public SmoothStepNode()
{
name = "SmoothStepNode";
}
protected override string GetFunctionName() {return "smoothstep"; }
}
}

9
MaterialGraphProject/Assets/Vlad.meta


fileFormatVersion: 2
guid: ea5b5394ff8b04146abae74a39fd167a
folderAsset: yes
timeCreated: 1495479460
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

/MaterialGraphProject/Assets/Brandon/ATan2Node.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ATan2Node.cs.meta

/MaterialGraphProject/Assets/Brandon/ArcCosNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ArcCosNode.cs.meta

/MaterialGraphProject/Assets/Brandon/ArcSinNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ArcSinNode.cs.meta

/MaterialGraphProject/Assets/Brandon/ArcTanNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/ArcTanNode.cs.meta

/MaterialGraphProject/Assets/Brandon/CosNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/CosNode.cs.meta

/MaterialGraphProject/Assets/Brandon/CrossNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/CrossNode.cs.meta

/MaterialGraphProject/Assets/Brandon/DegreesToRadiansNode.cs → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/DegreesToRadiansNode.cs

/MaterialGraphProject/Assets/Brandon/DegreesToRadiansNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/DegreesToRadiansNode.cs.meta

/MaterialGraphProject/Assets/Brandon/RadiansToDegreesNode.cs → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/RadiansToDegreesNode.cs

/MaterialGraphProject/Assets/Brandon/RadiansToDegreesNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/RadiansToDegreesNode.cs.meta

/MaterialGraphProject/Assets/Brandon/ReciprocalNode.cs → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/ReciprocalNode.cs

/MaterialGraphProject/Assets/Brandon/ReciprocalNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/ReciprocalNode.cs.meta

/MaterialGraphProject/Assets/Brandon/SinCosNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/SinCosNode.cs.meta

/MaterialGraphProject/Assets/Brandon/TanNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Trigonometry/TanNode.cs.meta

/MaterialGraphProject/Assets/Eduardo/NegateNode.cs → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/NegateNode.cs

/MaterialGraphProject/Assets/Eduardo/NegateNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/NegateNode.cs.meta

/MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/AddNode.cs → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/AddNode.cs

/MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/AddNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/AddNode.cs.meta

/MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/AbsoluteNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/AbsoluteNode.cs.meta

/MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/ClampNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Range/ClampNode.cs.meta

/MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/DivNode.cs → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/DivNode.cs

/MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/DivNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Basic/DivNode.cs.meta

/MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/DotNode.cs → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/DotNode.cs

/MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/DotNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/DotNode.cs.meta

/MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/FresnelNode.cs → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/FresnelNode.cs

/MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/FresnelNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Vector/FresnelNode.cs.meta

/MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/LengthNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Math/Advanced/LengthNode.cs.meta

部分文件因为文件数量过多而无法显示

正在加载...
取消
保存