You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
749 B
20 lines
749 B
2 years ago
|
using UnityEditor.Graphing;
|
||
|
using UnityEditor.ShaderGraph.Internal;
|
||
|
|
||
|
namespace UnityEditor.ShaderGraph
|
||
|
{
|
||
|
interface IMayRequirePositionPredisplacement
|
||
|
{
|
||
|
NeededCoordinateSpace RequiresPositionPredisplacement(ShaderStageCapability stageCapability = ShaderStageCapability.All);
|
||
|
}
|
||
|
|
||
|
static class MayRequirePositionPredisplacementExtensions
|
||
|
{
|
||
|
public static NeededCoordinateSpace RequiresPositionPredisplacement(this MaterialSlot slot)
|
||
|
{
|
||
|
var mayRequirePositionPredisplacement = slot as IMayRequirePositionPredisplacement;
|
||
|
return mayRequirePositionPredisplacement != null ? mayRequirePositionPredisplacement.RequiresPositionPredisplacement() : NeededCoordinateSpace.None;
|
||
|
}
|
||
|
}
|
||
|
}
|