BabylonHDRCubeTexture.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System.Runtime.Serialization;
  2. namespace BabylonExport.Entities
  3. {
  4. [DataContract]
  5. public class BabylonHDRCubeTexture : BabylonTexture
  6. {
  7. [DataMember]
  8. public string customType { get; private set; }
  9. [DataMember]
  10. public int size { get; set; }
  11. [DataMember]
  12. public bool useInGammaSpace { get; set; }
  13. [DataMember]
  14. public bool generateHarmonics { get; set; }
  15. [DataMember]
  16. public bool usePMREMGenerator { get; set; }
  17. [DataMember]
  18. public bool isBABYLONPreprocessed { get; set; }
  19. public BabylonHDRCubeTexture()
  20. {
  21. SetCustomType("BABYLON.HDRCubeTexture");
  22. size = 0;
  23. isCube = true;
  24. useInGammaSpace = false;
  25. generateHarmonics = true;
  26. usePMREMGenerator = false;
  27. isBABYLONPreprocessed = false;
  28. }
  29. public void SetCustomType(string type)
  30. {
  31. customType = type;
  32. }
  33. }
  34. }