暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }