TextureLayer.cs 687 B

123456789101112131415161718192021222324252627282930313233
  1. using UnityEngine;
  2. namespace MTE
  3. {
  4. #if UNITY_EDITOR
  5. [UnityEngine.Scripting.APIUpdating.MovedFrom("PBRLayer")]
  6. #endif
  7. [System.Serializable]
  8. public class TextureLayer
  9. {
  10. public Texture2D Albedo;
  11. public Texture2D Roughness;
  12. public Texture2D Normal;
  13. public Texture2D AO;
  14. public Texture2D Height;
  15. public Texture2D Metallic;
  16. public bool IsReadyForPBRTextureArray()
  17. {
  18. return Albedo != null && Roughness != null && Normal != null && AO != null;
  19. }
  20. }
  21. public enum TextureType
  22. {
  23. Albedo,
  24. Roughness,
  25. Normal,
  26. AO,
  27. Height,
  28. Metallic
  29. }
  30. }