浏览代码

Fix merge issues.

/main
Tim Cooper 7 年前
当前提交
497d1891
共有 24 个文件被更改,包括 234 次插入326 次删除
  1. 2
      MaterialGraphProject/Assets/NewNodes/Editor/Keep/UVTriPlanar.cs
  2. 410
      MaterialGraphProject/Assets/PartyPreview.ShaderGraph
  3. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/BitangentMaterialSlot.cs
  4. 9
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/DynamicVectorMaterialSlot.cs
  5. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/IMaterialSlotHasVaule.cs
  6. 8
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Matrix2MaterialSlot.cs
  7. 6
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Matrix3MaterialSlot.cs
  8. 6
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Matrix4MaterialSlot.cs
  9. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/NormalMaterialSlot.cs
  10. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/PositionMaterialSlot.cs
  11. 6
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/SamplerStateMaterialSlot.cs
  12. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/ScreenPositionMaterialSlot.cs
  13. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/TangentMaterialSlot.cs
  14. 6
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Texture2DMaterialSlot.cs
  15. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/UVMaterialSlot.cs
  16. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector1MaterialSlot.cs
  17. 12
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector2MaterialSlot.cs
  18. 10
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector3MaterialSlot.cs
  19. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector4MaterialSlot.cs
  20. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/VertexColorMaterialSlot.cs
  21. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/ViewDirectionMaterialSlot.cs
  22. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Art/Filters/ConvolutionFilterNode.cs
  23. 5
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/CodeFunctionNode.cs
  24. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/SurfaceModel/ProjectSpecificMasterNode.cs

2
MaterialGraphProject/Assets/NewNodes/Editor/Keep/UVTriPlanar.cs


/*
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Title("UV/Tri-Planar Mapping")]
public class UVTriPlanar : FunctionNInNOut, IGeneratesFunction, IMayRequireNormal, IMayRequireWorldPosition

410
MaterialGraphProject/Assets/PartyPreview.ShaderGraph
文件差异内容过多而无法显示
查看文件

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/BitangentMaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class BitangentMaterialSlot : Vector3MaterialSlot, IMayRequireBitangent

return space.ToNeededCoordinateSpace();
}
}
}
}

9
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/DynamicVectorMaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class DynamicVectorMaterialSlot : MaterialSlot, IMaterialSlotHasVaule<Vector4>

protected override string ConcreteSlotValueAsVariable(AbstractMaterialNode.OutputPrecision precision)
{
return precision + "4 (" + value.x + "," + value.y + "," + value.z + "," + value.w + ")";
return precision + "4 (" + value.x + "," + value.y + "," + value.z + "," + value.w + ")";
}
}

4
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/IMaterialSlotHasVaule.cs


namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
public interface IMaterialSlotHasVaule<T>
{

}
}

8
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Matrix2MaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class Matrix2MaterialSlot : MaterialSlot

:base(slotId, displayName, shaderOutputName, slotType, shaderStage, hidden)
{
}
protected override string ConcreteSlotValueAsVariable(AbstractMaterialNode.OutputPrecision precision)
{
return precision + "2x2 (1,0,0,1)";

public override ConcreteSlotValueType concreteValueType { get { return ConcreteSlotValueType.Matrix2; } }
}
}
}

6
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Matrix3MaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class Matrix3MaterialSlot : MaterialSlot

public override SlotValueType valueType { get { return SlotValueType.Matrix3; } }
public override ConcreteSlotValueType concreteValueType { get { return ConcreteSlotValueType.Matrix3; } }
}
}
}

6
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Matrix4MaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class Matrix4MaterialSlot : MaterialSlot

public override SlotValueType valueType { get { return SlotValueType.Matrix4; } }
public override ConcreteSlotValueType concreteValueType { get { return ConcreteSlotValueType.Matrix4; } }
}
}
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/NormalMaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class NormalMaterialSlot : Vector3MaterialSlot, IMayRequireNormal

return space.ToNeededCoordinateSpace();
}
}
}
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/PositionMaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class PositionMaterialSlot : Vector3MaterialSlot, IMayRequirePosition

return space.ToNeededCoordinateSpace();
}
}
}
}

6
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/SamplerStateMaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class SamplerStateMaterialSlot : MaterialSlot

public override SlotValueType valueType { get { return SlotValueType.SamplerState; } }
public override ConcreteSlotValueType concreteValueType { get { return ConcreteSlotValueType.SamplerState; } }
}
}
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/ScreenPositionMaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class ScreenPositionMaterialSlot : Vector4MaterialSlot, IMayRequireScreenPosition

return !isConnected;
}
}
}
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/TangentMaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class TangentMaterialSlot : Vector3MaterialSlot, IMayRequireTangent

return space.ToNeededCoordinateSpace();
}
}
}
}

6
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Texture2DMaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class Texture2DMaterialSlot : MaterialSlot

public override SlotValueType valueType { get { return SlotValueType.Texture2D; } }
public override ConcreteSlotValueType concreteValueType { get { return ConcreteSlotValueType.Texture2D; } }
}
}
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/UVMaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class UVMaterialSlot : Vector2MaterialSlot, IMayRequireMeshUV

return m_Channel == channel;
}
}
}
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector1MaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class Vector1MaterialSlot : MaterialSlot, IMaterialSlotHasVaule<float>

return pp;
}
}
}
}

12
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector2MaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class Vector2MaterialSlot : MaterialSlot, IMaterialSlotHasVaule<Vector2>

[SerializeField]
private Vector2 m_DefaultValue;
{
}
{}
public Vector2MaterialSlot(
int slotId,

public override SlotValueType valueType { get { return SlotValueType.Vector2; } }
public override ConcreteSlotValueType concreteValueType { get { return ConcreteSlotValueType.Vector2; } }
}
}
}

10
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector3MaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class Vector3MaterialSlot : MaterialSlot, IMaterialSlotHasVaule<Vector3>

[SerializeField]
private Vector3 m_DefaultValue;
public Vector3MaterialSlot()
{
}

{
return precision + "3 (" + value.x + "," + value.y + "," + value.z + ")";
}
public override PreviewProperty GetPreviewProperty(string name)
{
var pp = new PreviewProperty

public override SlotValueType valueType { get { return SlotValueType.Vector3; } }
public override ConcreteSlotValueType concreteValueType { get { return ConcreteSlotValueType.Vector3; } }
}
}
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector4MaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class Vector4MaterialSlot : MaterialSlot, IMaterialSlotHasVaule<Vector4>

public override SlotValueType valueType { get { return SlotValueType.Vector4; } }
public override ConcreteSlotValueType concreteValueType { get { return ConcreteSlotValueType.Vector4; } }
}
}
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/VertexColorMaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class VertexColorMaterialSlot : Vector4MaterialSlot, IMayRequireScreenPosition

return !isConnected;
}
}
}
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/ViewDirectionMaterialSlot.cs


using System;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class ViewDirectionMaterialSlot : Vector3MaterialSlot, IMayRequireViewDirection

return space.ToNeededCoordinateSpace();
}
}
}
}

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Art/Filters/ConvolutionFilterNode.cs


using System.Linq;
using System;
/*namespace UnityEngine.MaterialGraph
/*namespace UnityEditor.ShaderGraph
{
[Title("Art/Filters/Convolution")]
public class ConvolutionFilterNode : Function2Input, IGeneratesFunction, IGeneratesBodyCode, IMayRequireMeshUV

5
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/CodeFunctionNode.cs


defaultValue = new Vector4(defaultX, defaultY, defaultZ, defaultW);
}
}
protected abstract MethodInfo GetFunctionToConvert();
private static SlotValueType ConvertTypeToSlotValueType(ParameterInfo p)

binding |= slot.RequiresNormal();
return binding;
}
public NeededCoordinateSpace RequiresViewDirection()
{
var binding = NeededCoordinateSpace.None;

public bool RequiresMeshUV(UVChannel channel)
{
var binding = NeededCoordinateSpace.None;
foreach (var slot in GetInputSlots<MaterialSlot>().OfType<IMayRequireMeshUV>())
{
if (slot.RequiresMeshUV(channel))

4
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/SurfaceModel/ProjectSpecificMasterNode.cs


using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using UnityEngine.Graphing;
using UnityEditor.Graphing;
namespace UnityEngine.MaterialGraph
namespace UnityEditor.ShaderGraph
{
[Serializable]
public abstract class ProjectSpecificMasterNode : AbstractMasterNode

正在加载...
取消
保存