Sin descripción
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.

IMayRequireNormal.cs 596B

12345678910111213141516171819
  1. using UnityEditor.Graphing;
  2. using UnityEditor.ShaderGraph.Internal;
  3. namespace UnityEditor.ShaderGraph
  4. {
  5. interface IMayRequireNormal
  6. {
  7. NeededCoordinateSpace RequiresNormal(ShaderStageCapability stageCapability = ShaderStageCapability.All);
  8. }
  9. static class MayRequireNormalExtensions
  10. {
  11. public static NeededCoordinateSpace RequiresNormal(this MaterialSlot slot)
  12. {
  13. var mayRequireNormal = slot as IMayRequireNormal;
  14. return mayRequireNormal != null ? mayRequireNormal.RequiresNormal() : NeededCoordinateSpace.None;
  15. }
  16. }
  17. }