|
|
|
|
|
|
using UnityEditor.ShaderGraph.Drawing.Controls; |
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
namespace UnityEditor.ShaderGraph |
|
|
|
/*namespace UnityEditor.ShaderGraph |
|
|
|
{ |
|
|
|
public enum SceneDepthMode |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
[Title("Input", "Scene", "Scene Depth")] |
|
|
|
public class SceneDepthNode : AbstractMaterialNode, IGenerateProperties, IGeneratesBodyCode, IMayRequireScreenPosition |
|
|
|
public sealed class SceneDepthNode : AbstractMaterialNode, IGenerateProperties, IGeneratesBodyCode, IMayRequireScreenPosition |
|
|
|
{ |
|
|
|
const string kUVSlotName = "UV"; |
|
|
|
const string kOutputSlotName = "Out"; |
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public sealed override void UpdateNodeAfterDeserialization() |
|
|
|
public override void UpdateNodeAfterDeserialization() |
|
|
|
{ |
|
|
|
AddSlot(new ScreenPositionMaterialSlot(UVSlotId, kUVSlotName, kUVSlotName)); |
|
|
|
AddSlot(new Vector1MaterialSlot(OutputSlotId, kOutputSlotName, kOutputSlotName, SlotType.Output, 0)); |
|
|
|
|
|
|
return uvSlot.RequiresScreenPosition(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |