浏览代码

Menu Reorg: UV

/main
Matt Dean 8 年前
当前提交
d6b32a39
共有 14 个文件被更改,包括 17 次插入10 次删除
  1. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/CartesianToPolarNode.cs
  2. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVTileNode.cs
  3. 6
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVPannerNode.cs
  4. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVRotatorNode.cs
  5. 9
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV.meta
  6. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/CartesianToPolarNode.cs
  7. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/CartesianToPolarNode.cs.meta
  8. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVTileNode.cs
  9. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVTileNode.cs.meta
  10. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVPannerNode.cs
  11. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVPannerNode.cs.meta
  12. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVRotatorNode.cs.meta
  13. 0
      /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVRotatorNode.cs

4
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/CartesianToPolarNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("UV/Cartesian To Polar Node")]
[Title("UV/Cartesian To Polar")]
name = "CartesianToPolarNode";
name = "CartesianToPolar";
}
protected override string GetFunctionName()

4
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVTileNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("UV/Tile Node")]
[Title("UV/UV Tile")]
name = "UVTileNode";
name = "UVTile";
}
protected override string GetFunctionName()

6
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVPannerNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("UV/Panner")]
[Title("UV/UV Panner")]
name = "Panner";
name = "UVPanner";
return "unity_pan_" + precision;
return "unity_uvpanner_" + precision;
}
protected override string GetInputSlot1Name()

4
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVRotatorNode.cs


namespace UnityEngine.MaterialGraph
{
[Title("UV/Rotator")]
[Title("UV/UV Rotator")]
public class UVRotatorNode : Function2Input, IGeneratesFunction
{
private const string kUVSlotName = "UV";

return new MaterialSlot(OutputSlotId, kUVSlotName, kUVSlotName, SlotType.Output, SlotValueType.Vector4, Vector4.zero);
}
//TODO:Externalize
//Reference code from:http://www.chilliant.com/rgb2hsv.html
public void GenerateNodeFunction(ShaderGenerator visitor, GenerationMode generationMode)
{
var outputString = new ShaderGenerator();

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


fileFormatVersion: 2
guid: f9c248f478f706147ba7b8a660035472
folderAsset: yes
timeCreated: 1495529881
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

/MaterialGraphProject/Assets/Brandon/CartesianToPolarNode.cs → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/CartesianToPolarNode.cs

/MaterialGraphProject/Assets/Brandon/CartesianToPolarNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/CartesianToPolarNode.cs.meta

/MaterialGraphProject/Assets/Brandon/UVTileNode.cs → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVTileNode.cs

/MaterialGraphProject/Assets/Brandon/UVTileNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVTileNode.cs.meta

/MaterialGraphProject/Assets/Eduardo/PannerNode.cs → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVPannerNode.cs

/MaterialGraphProject/Assets/Eduardo/PannerNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVPannerNode.cs.meta

/MaterialGraphProject/Assets/Vlad/UVRotatorNode.cs.meta → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVRotatorNode.cs.meta

/MaterialGraphProject/Assets/Vlad/UVRotatorNode.cs → /MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/UVRotatorNode.cs

正在加载...
取消
保存