Без опису
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718
  1. using UnityEditor.Graphing;
  2. namespace UnityEditor.ShaderGraph
  3. {
  4. interface IMayRequireDepthTexture
  5. {
  6. bool RequiresDepthTexture(ShaderStageCapability stageCapability = ShaderStageCapability.All);
  7. }
  8. static class MayRequireDepthTextureExtensions
  9. {
  10. public static bool RequiresDepthTexture(this MaterialSlot slot)
  11. {
  12. var mayRequireDepthTexture = slot as IMayRequireDepthTexture;
  13. return mayRequireDepthTexture != null && mayRequireDepthTexture.RequiresDepthTexture();
  14. }
  15. }
  16. }