浏览代码

[Shader graph]Add some texture panning.

/main
Tim Cooper 9 年前
当前提交
acfc64fe
共有 3 个文件被更改,包括 1965 次插入22 次删除
  1. 15
      UnityProject/Assets/UnityShaderEditor/Editor/Source/Drawing/MaterialGraphDataSource.cs
  2. 986
      UnityProject/Assets/UnityShaderEditor/Graphs/SimpleGraph.ShaderGraph
  3. 986
      UnityProject/Assets/UnityShaderEditor/Graphs/SimpleMetal.ShaderGraph

15
UnityProject/Assets/UnityShaderEditor/Editor/Source/Drawing/MaterialGraphDataSource.cs


public void DeleteElement(CanvasElement e)
{
Debug.Log("Trying to delete " + e);
if (e is DrawableMaterialNode)
{
Debug.Log("Deleting node " + e + " " + ((DrawableMaterialNode) e).m_Node);
graph.currentGraph.RemoveNode(((DrawableMaterialNode) e).m_Node);
}
else if (e is Edge<NodeAnchor>)
if (e is Edge<NodeAnchor>)
Debug.Log("Deleting edge " + edge + " " + ((DrawableMaterialNode) e).m_Node);
}
else if (e is DrawableMaterialNode)
{
Debug.Log("Deleting node " + e + " " + ((DrawableMaterialNode) e).m_Node);
graph.currentGraph.RemoveNode(((DrawableMaterialNode) e).m_Node);
}
e.ParentCanvas().ReloadData();

986
UnityProject/Assets/UnityShaderEditor/Graphs/SimpleGraph.ShaderGraph
文件差异内容过多而无法显示
查看文件

986
UnityProject/Assets/UnityShaderEditor/Graphs/SimpleMetal.ShaderGraph
文件差异内容过多而无法显示
查看文件

正在加载...
取消
保存