No Description
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.

IMayRequireBitangent.cs 623B

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