@babylonjs/procedural-textures 5.0.0-beta.9 → 5.0.0-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/brick/brickProceduralTexture.d.ts +35 -35
  2. package/brick/brickProceduralTexture.fragment.d.ts +5 -5
  3. package/brick/brickProceduralTexture.fragment.js +8 -6
  4. package/brick/brickProceduralTexture.fragment.js.map +1 -1
  5. package/brick/brickProceduralTexture.js +104 -104
  6. package/brick/brickProceduralTexture.js.map +1 -1
  7. package/brick/index.d.ts +1 -1
  8. package/brick/index.js +1 -1
  9. package/brick/index.js.map +1 -1
  10. package/cloud/cloudProceduralTexture.d.ts +35 -35
  11. package/cloud/cloudProceduralTexture.fragment.d.ts +5 -5
  12. package/cloud/cloudProceduralTexture.fragment.js +8 -6
  13. package/cloud/cloudProceduralTexture.fragment.js.map +1 -1
  14. package/cloud/cloudProceduralTexture.js +104 -104
  15. package/cloud/cloudProceduralTexture.js.map +1 -1
  16. package/cloud/index.d.ts +1 -1
  17. package/cloud/index.js +1 -1
  18. package/cloud/index.js.map +1 -1
  19. package/fire/fireProceduralTexture.d.ts +44 -44
  20. package/fire/fireProceduralTexture.fragment.d.ts +5 -5
  21. package/fire/fireProceduralTexture.fragment.js +8 -6
  22. package/fire/fireProceduralTexture.fragment.js.map +1 -1
  23. package/fire/fireProceduralTexture.js +166 -194
  24. package/fire/fireProceduralTexture.js.map +1 -1
  25. package/fire/index.d.ts +1 -1
  26. package/fire/index.js +1 -1
  27. package/fire/index.js.map +1 -1
  28. package/grass/grassProceduralTexture.d.ts +29 -29
  29. package/grass/grassProceduralTexture.fragment.d.ts +5 -5
  30. package/grass/grassProceduralTexture.fragment.js +8 -6
  31. package/grass/grassProceduralTexture.fragment.js.map +1 -1
  32. package/grass/grassProceduralTexture.js +80 -84
  33. package/grass/grassProceduralTexture.js.map +1 -1
  34. package/grass/index.d.ts +1 -1
  35. package/grass/index.js +1 -1
  36. package/grass/index.js.map +1 -1
  37. package/index.d.ts +10 -10
  38. package/index.js +11 -10
  39. package/index.js.map +1 -1
  40. package/legacy/legacy-brick.d.ts +1 -1
  41. package/legacy/legacy-brick.js +13 -12
  42. package/legacy/legacy-brick.js.map +1 -1
  43. package/legacy/legacy-cloud.d.ts +1 -1
  44. package/legacy/legacy-cloud.js +13 -12
  45. package/legacy/legacy-cloud.js.map +1 -1
  46. package/legacy/legacy-fire.d.ts +1 -1
  47. package/legacy/legacy-fire.js +13 -12
  48. package/legacy/legacy-fire.js.map +1 -1
  49. package/legacy/legacy-grass.d.ts +1 -1
  50. package/legacy/legacy-grass.js +13 -12
  51. package/legacy/legacy-grass.js.map +1 -1
  52. package/legacy/legacy-marble.d.ts +1 -1
  53. package/legacy/legacy-marble.js +13 -12
  54. package/legacy/legacy-marble.js.map +1 -1
  55. package/legacy/legacy-normalMap.d.ts +1 -1
  56. package/legacy/legacy-normalMap.js +13 -12
  57. package/legacy/legacy-normalMap.js.map +1 -1
  58. package/legacy/legacy-perlinNoise.d.ts +1 -1
  59. package/legacy/legacy-perlinNoise.js +13 -12
  60. package/legacy/legacy-perlinNoise.js.map +1 -1
  61. package/legacy/legacy-road.d.ts +1 -1
  62. package/legacy/legacy-road.js +13 -12
  63. package/legacy/legacy-road.js.map +1 -1
  64. package/legacy/legacy-starfield.d.ts +1 -1
  65. package/legacy/legacy-starfield.js +13 -12
  66. package/legacy/legacy-starfield.js.map +1 -1
  67. package/legacy/legacy-wood.d.ts +1 -1
  68. package/legacy/legacy-wood.js +13 -12
  69. package/legacy/legacy-wood.js.map +1 -1
  70. package/legacy/legacy.d.ts +1 -1
  71. package/legacy/legacy.js +16 -15
  72. package/legacy/legacy.js.map +1 -1
  73. package/marble/index.d.ts +1 -1
  74. package/marble/index.js +1 -1
  75. package/marble/index.js.map +1 -1
  76. package/marble/marbleProceduralTexture.d.ts +35 -35
  77. package/marble/marbleProceduralTexture.fragment.d.ts +5 -5
  78. package/marble/marbleProceduralTexture.fragment.js +8 -6
  79. package/marble/marbleProceduralTexture.fragment.js.map +1 -1
  80. package/marble/marbleProceduralTexture.js +104 -104
  81. package/marble/marbleProceduralTexture.js.map +1 -1
  82. package/normalMap/index.d.ts +1 -1
  83. package/normalMap/index.js +1 -1
  84. package/normalMap/index.js.map +1 -1
  85. package/normalMap/normalMapProceduralTexture.d.ts +28 -28
  86. package/normalMap/normalMapProceduralTexture.fragment.d.ts +5 -5
  87. package/normalMap/normalMapProceduralTexture.fragment.js +8 -6
  88. package/normalMap/normalMapProceduralTexture.fragment.js.map +1 -1
  89. package/normalMap/normalMapProceduralTexture.js +69 -69
  90. package/normalMap/normalMapProceduralTexture.js.map +1 -1
  91. package/package.json +22 -152
  92. package/perlinNoise/index.d.ts +1 -1
  93. package/perlinNoise/index.js +1 -1
  94. package/perlinNoise/index.js.map +1 -1
  95. package/perlinNoise/perlinNoiseProceduralTexture.d.ts +28 -28
  96. package/perlinNoise/perlinNoiseProceduralTexture.fragment.d.ts +5 -5
  97. package/perlinNoise/perlinNoiseProceduralTexture.fragment.js +8 -6
  98. package/perlinNoise/perlinNoiseProceduralTexture.fragment.js.map +1 -1
  99. package/perlinNoise/perlinNoiseProceduralTexture.js +69 -69
  100. package/perlinNoise/perlinNoiseProceduralTexture.js.map +1 -1
  101. package/readme.md +2 -2
  102. package/road/index.d.ts +1 -1
  103. package/road/index.js +1 -1
  104. package/road/index.js.map +1 -1
  105. package/road/roadProceduralTexture.d.ts +26 -26
  106. package/road/roadProceduralTexture.fragment.d.ts +5 -5
  107. package/road/roadProceduralTexture.fragment.js +8 -6
  108. package/road/roadProceduralTexture.fragment.js.map +1 -1
  109. package/road/roadProceduralTexture.js +56 -56
  110. package/road/roadProceduralTexture.js.map +1 -1
  111. package/starfield/index.d.ts +1 -1
  112. package/starfield/index.js +1 -1
  113. package/starfield/index.js.map +1 -1
  114. package/starfield/starfieldProceduralTexture.d.ts +55 -55
  115. package/starfield/starfieldProceduralTexture.fragment.d.ts +5 -5
  116. package/starfield/starfieldProceduralTexture.fragment.js +8 -6
  117. package/starfield/starfieldProceduralTexture.fragment.js.map +1 -1
  118. package/starfield/starfieldProceduralTexture.js +215 -215
  119. package/starfield/starfieldProceduralTexture.js.map +1 -1
  120. package/wood/index.d.ts +1 -1
  121. package/wood/index.js +1 -1
  122. package/wood/index.js.map +1 -1
  123. package/wood/woodProceduralTexture.d.ts +29 -29
  124. package/wood/woodProceduralTexture.fragment.d.ts +5 -5
  125. package/wood/woodProceduralTexture.fragment.js +8 -6
  126. package/wood/woodProceduralTexture.fragment.js.map +1 -1
  127. package/wood/woodProceduralTexture.js +72 -72
  128. package/wood/woodProceduralTexture.js.map +1 -1
@@ -1,13 +1,14 @@
1
- import * as proceduralTexture from "../road/index.js";
2
- /**
3
- * This is the entry point for the UMD module.
4
- * The entry point for a future ESM package should be index.ts
5
- */
6
- var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
7
- if (typeof globalObject !== "undefined") {
8
- for (var key in proceduralTexture) {
9
- globalObject.BABYLON[key] = proceduralTexture[key];
10
- }
11
- }
12
- export * from "../road/index.js";
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "../road/index";
3
+ /**
4
+ * This is the entry point for the UMD module.
5
+ * The entry point for a future ESM package should be index.ts
6
+ */
7
+ var globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
8
+ if (typeof globalObject !== "undefined") {
9
+ for (var key in proceduralTexture) {
10
+ globalObject.BABYLON[key] = proceduralTexture[key];
11
+ }
12
+ }
13
+ export * from "../road/index";
13
14
  //# sourceMappingURL=legacy-road.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"legacy-road.js","sourceRoot":"","sources":["../../../sourceES6/proceduralTexturesLibrary/src/legacy/legacy-road.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAEnD;;;GAGG;AACH,IAAI,YAAY,GAAG,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AACrH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,IAAI,GAAG,IAAI,iBAAiB,EAAE;QACzB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,iBAAkB,CAAC,GAAG,CAAC,CAAC;KACpE;CACJ;AAED,cAAc,eAAe,CAAC","sourcesContent":["import * as proceduralTexture from \"../road/index\";\r\n\r\n/**\r\n * This is the entry point for the UMD module.\r\n * The entry point for a future ESM package should be index.ts\r\n */\r\nvar globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);\r\nif (typeof globalObject !== \"undefined\") {\r\n for (var key in proceduralTexture) {\r\n (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];\r\n }\r\n}\r\n\r\nexport * from \"../road/index\";"]}
1
+ {"version":3,"file":"legacy-road.js","sourceRoot":"","sources":["../../../../../lts/proceduralTextures/generated/legacy/legacy-road.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD;;;GAGG;AACH,IAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,IAAM,GAAG,IAAI,iBAAiB,EAAE;QAC3B,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,iBAAkB,CAAC,GAAG,CAAC,CAAC;KACpE;CACJ;AACD,cAAc,eAAe,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as proceduralTexture from \"../road/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in proceduralTexture) {\n (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];\n }\n}\nexport * from \"../road/index\";\n"]}
@@ -1 +1 @@
1
- export * from "../starfield/index";
1
+ export * from "../starfield/index";
@@ -1,13 +1,14 @@
1
- import * as proceduralTexture from "../starfield/index.js";
2
- /**
3
- * This is the entry point for the UMD module.
4
- * The entry point for a future ESM package should be index.ts
5
- */
6
- var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
7
- if (typeof globalObject !== "undefined") {
8
- for (var key in proceduralTexture) {
9
- globalObject.BABYLON[key] = proceduralTexture[key];
10
- }
11
- }
12
- export * from "../starfield/index.js";
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "../starfield/index";
3
+ /**
4
+ * This is the entry point for the UMD module.
5
+ * The entry point for a future ESM package should be index.ts
6
+ */
7
+ var globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
8
+ if (typeof globalObject !== "undefined") {
9
+ for (var key in proceduralTexture) {
10
+ globalObject.BABYLON[key] = proceduralTexture[key];
11
+ }
12
+ }
13
+ export * from "../starfield/index";
13
14
  //# sourceMappingURL=legacy-starfield.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"legacy-starfield.js","sourceRoot":"","sources":["../../../sourceES6/proceduralTexturesLibrary/src/legacy/legacy-starfield.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,oBAAoB,CAAC;AAExD;;;GAGG;AACH,IAAI,YAAY,GAAG,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AACrH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,IAAI,GAAG,IAAI,iBAAiB,EAAE;QACzB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,iBAAkB,CAAC,GAAG,CAAC,CAAC;KACpE;CACJ;AAED,cAAc,oBAAoB,CAAC","sourcesContent":["import * as proceduralTexture from \"../starfield/index\";\r\n\r\n/**\r\n * This is the entry point for the UMD module.\r\n * The entry point for a future ESM package should be index.ts\r\n */\r\nvar globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);\r\nif (typeof globalObject !== \"undefined\") {\r\n for (var key in proceduralTexture) {\r\n (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];\r\n }\r\n}\r\n\r\nexport * from \"../starfield/index\";"]}
1
+ {"version":3,"file":"legacy-starfield.js","sourceRoot":"","sources":["../../../../../lts/proceduralTextures/generated/legacy/legacy-starfield.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,iBAAiB,MAAM,oBAAoB,CAAC;AACxD;;;GAGG;AACH,IAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,IAAM,GAAG,IAAI,iBAAiB,EAAE;QAC3B,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,iBAAkB,CAAC,GAAG,CAAC,CAAC;KACpE;CACJ;AACD,cAAc,oBAAoB,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as proceduralTexture from \"../starfield/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in proceduralTexture) {\n (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];\n }\n}\nexport * from \"../starfield/index\";\n"]}
@@ -1 +1 @@
1
- export * from "../wood/index";
1
+ export * from "../wood/index";
@@ -1,13 +1,14 @@
1
- import * as proceduralTexture from "../wood/index.js";
2
- /**
3
- * This is the entry point for the UMD module.
4
- * The entry point for a future ESM package should be index.ts
5
- */
6
- var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
7
- if (typeof globalObject !== "undefined") {
8
- for (var key in proceduralTexture) {
9
- globalObject.BABYLON[key] = proceduralTexture[key];
10
- }
11
- }
12
- export * from "../wood/index.js";
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "../wood/index";
3
+ /**
4
+ * This is the entry point for the UMD module.
5
+ * The entry point for a future ESM package should be index.ts
6
+ */
7
+ var globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
8
+ if (typeof globalObject !== "undefined") {
9
+ for (var key in proceduralTexture) {
10
+ globalObject.BABYLON[key] = proceduralTexture[key];
11
+ }
12
+ }
13
+ export * from "../wood/index";
13
14
  //# sourceMappingURL=legacy-wood.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"legacy-wood.js","sourceRoot":"","sources":["../../../sourceES6/proceduralTexturesLibrary/src/legacy/legacy-wood.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAEnD;;;GAGG;AACH,IAAI,YAAY,GAAG,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AACrH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,IAAI,GAAG,IAAI,iBAAiB,EAAE;QACzB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,iBAAkB,CAAC,GAAG,CAAC,CAAC;KACpE;CACJ;AAED,cAAc,eAAe,CAAC","sourcesContent":["import * as proceduralTexture from \"../wood/index\";\r\n\r\n/**\r\n * This is the entry point for the UMD module.\r\n * The entry point for a future ESM package should be index.ts\r\n */\r\nvar globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);\r\nif (typeof globalObject !== \"undefined\") {\r\n for (var key in proceduralTexture) {\r\n (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];\r\n }\r\n}\r\n\r\nexport * from \"../wood/index\";"]}
1
+ {"version":3,"file":"legacy-wood.js","sourceRoot":"","sources":["../../../../../lts/proceduralTextures/generated/legacy/legacy-wood.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD;;;GAGG;AACH,IAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,IAAM,GAAG,IAAI,iBAAiB,EAAE;QAC3B,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,iBAAkB,CAAC,GAAG,CAAC,CAAC;KACpE;CACJ;AACD,cAAc,eAAe,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as proceduralTexture from \"../wood/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in proceduralTexture) {\n (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];\n }\n}\nexport * from \"../wood/index\";\n"]}
@@ -1 +1 @@
1
- export * from "../index";
1
+ export * from "../index";
package/legacy/legacy.js CHANGED
@@ -1,16 +1,17 @@
1
- import * as ProceduralTexturesLib from "../index.js";
2
- /**
3
- * Legacy support, defining window.BABYLON.GridMaterial... (global variable).
4
- *
5
- * This is the entry point for the UMD module.
6
- * The entry point for a future ESM package should be index.ts
7
- */
8
- var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
9
- if (typeof globalObject !== "undefined") {
10
- globalObject.BABYLON = globalObject.BABYLON || {};
11
- for (var mat in ProceduralTexturesLib) {
12
- globalObject.BABYLON[mat] = ProceduralTexturesLib[mat];
13
- }
14
- }
15
- export * from "../index.js";
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as ProceduralTexturesLib from "../index";
3
+ /**
4
+ * Legacy support, defining window.BABYLON.GridMaterial... (global variable).
5
+ *
6
+ * This is the entry point for the UMD module.
7
+ * The entry point for a future ESM package should be index.ts
8
+ */
9
+ var globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
10
+ if (typeof globalObject !== "undefined") {
11
+ globalObject.BABYLON = globalObject.BABYLON || {};
12
+ for (var mat in ProceduralTexturesLib) {
13
+ globalObject.BABYLON[mat] = ProceduralTexturesLib[mat];
14
+ }
15
+ }
16
+ export * from "../index";
16
17
  //# sourceMappingURL=legacy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../../sourceES6/proceduralTexturesLibrary/src/legacy/legacy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,UAAU,CAAC;AAElD;;;;;GAKG;AACH,IAAI,YAAY,GAAG,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AACrH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IAC/B,YAAa,CAAC,OAAO,GAAS,YAAa,CAAC,OAAO,IAAI,EAAE,CAAC;IAChE,KAAK,IAAI,GAAG,IAAI,qBAAqB,EAAE;QAC7B,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,qBAAsB,CAAC,GAAG,CAAC,CAAC;KACxE;CACJ;AAED,cAAc,UAAU,CAAC","sourcesContent":["import * as ProceduralTexturesLib from \"../index\";\r\n\r\n/**\r\n * Legacy support, defining window.BABYLON.GridMaterial... (global variable).\r\n *\r\n * This is the entry point for the UMD module.\r\n * The entry point for a future ESM package should be index.ts\r\n */\r\nvar globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);\r\nif (typeof globalObject !== \"undefined\") {\r\n (<any>globalObject).BABYLON = (<any>globalObject).BABYLON || {};\r\n for (var mat in ProceduralTexturesLib) {\r\n (<any>globalObject).BABYLON[mat] = (<any>ProceduralTexturesLib)[mat];\r\n }\r\n}\r\n\r\nexport * from \"../index\";"]}
1
+ {"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../../../../lts/proceduralTextures/generated/legacy/legacy.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,qBAAqB,MAAM,UAAU,CAAC;AAClD;;;;;GAKG;AACH,IAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IAC/B,YAAa,CAAC,OAAO,GAAS,YAAa,CAAC,OAAO,IAAI,EAAE,CAAC;IAChE,KAAK,IAAM,GAAG,IAAI,qBAAqB,EAAE;QAC/B,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,qBAAsB,CAAC,GAAG,CAAC,CAAC;KACxE;CACJ;AACD,cAAc,UAAU,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as ProceduralTexturesLib from \"../index\";\n/**\n * Legacy support, defining window.BABYLON.GridMaterial... (global variable).\n *\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n (<any>globalObject).BABYLON = (<any>globalObject).BABYLON || {};\n for (const mat in ProceduralTexturesLib) {\n (<any>globalObject).BABYLON[mat] = (<any>ProceduralTexturesLib)[mat];\n }\n}\nexport * from \"../index\";\n"]}
package/marble/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./marbleProceduralTexture";
1
+ export * from "./marbleProceduralTexture";
package/marble/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./marbleProceduralTexture.js";
1
+ export * from "./marbleProceduralTexture";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../sourceES6/proceduralTexturesLibrary/src/marble/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC","sourcesContent":["export * from \"./marbleProceduralTexture\";"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lts/proceduralTextures/generated/marble/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC","sourcesContent":["export * from \"./marbleProceduralTexture\";\r\n"]}
@@ -1,35 +1,35 @@
1
- import { Color3 } from "@babylonjs/core/Maths/math.color";
2
- import { Texture } from "@babylonjs/core/Materials/Textures/texture";
3
- import { ProceduralTexture } from "@babylonjs/core/Materials/Textures/Procedurals/proceduralTexture";
4
- import { Scene } from "@babylonjs/core/scene";
5
- import { Nullable } from "@babylonjs/core/types";
6
- import "./marbleProceduralTexture.fragment";
7
- export declare class MarbleProceduralTexture extends ProceduralTexture {
8
- private _numberOfTilesHeight;
9
- private _numberOfTilesWidth;
10
- private _amplitude;
11
- private _jointColor;
12
- constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
13
- updateShaderUniforms(): void;
14
- get numberOfTilesHeight(): number;
15
- set numberOfTilesHeight(value: number);
16
- get amplitude(): number;
17
- set amplitude(value: number);
18
- get numberOfTilesWidth(): number;
19
- set numberOfTilesWidth(value: number);
20
- get jointColor(): Color3;
21
- set jointColor(value: Color3);
22
- /**
23
- * Serializes this marble procedural texture
24
- * @returns a serialized marble procedural texture object
25
- */
26
- serialize(): any;
27
- /**
28
- * Creates a Marble Procedural Texture from parsed marble procedural texture data
29
- * @param parsedTexture defines parsed texture data
30
- * @param scene defines the current scene
31
- * @param rootUrl defines the root URL containing marble procedural texture information
32
- * @returns a parsed Marble Procedural Texture
33
- */
34
- static Parse(parsedTexture: any, scene: Scene, rootUrl: string): MarbleProceduralTexture;
35
- }
1
+ import { Color3 } from "@babylonjs/core/Maths/math.color.js";
2
+ import type { Texture } from "@babylonjs/core/Materials/Textures/texture.js";
3
+ import { ProceduralTexture } from "@babylonjs/core/Materials/Textures/Procedurals/proceduralTexture.js";
4
+ import type { Scene } from "@babylonjs/core/scene.js";
5
+ import type { Nullable } from "@babylonjs/core/types.js";
6
+ import "./marbleProceduralTexture.fragment";
7
+ export declare class MarbleProceduralTexture extends ProceduralTexture {
8
+ private _numberOfTilesHeight;
9
+ private _numberOfTilesWidth;
10
+ private _amplitude;
11
+ private _jointColor;
12
+ constructor(name: string, size: number, scene?: Nullable<Scene>, fallbackTexture?: Texture, generateMipMaps?: boolean);
13
+ updateShaderUniforms(): void;
14
+ get numberOfTilesHeight(): number;
15
+ set numberOfTilesHeight(value: number);
16
+ get amplitude(): number;
17
+ set amplitude(value: number);
18
+ get numberOfTilesWidth(): number;
19
+ set numberOfTilesWidth(value: number);
20
+ get jointColor(): Color3;
21
+ set jointColor(value: Color3);
22
+ /**
23
+ * Serializes this marble procedural texture
24
+ * @returns a serialized marble procedural texture object
25
+ */
26
+ serialize(): any;
27
+ /**
28
+ * Creates a Marble Procedural Texture from parsed marble procedural texture data
29
+ * @param parsedTexture defines parsed texture data
30
+ * @param scene defines the current scene
31
+ * @param rootUrl defines the root URL containing marble procedural texture information
32
+ * @returns a parsed Marble Procedural Texture
33
+ */
34
+ static Parse(parsedTexture: any, scene: Scene, rootUrl: string): MarbleProceduralTexture;
35
+ }
@@ -1,5 +1,5 @@
1
- /** @hidden */
2
- export declare var marbleProceduralTexturePixelShader: {
3
- name: string;
4
- shader: string;
5
- };
1
+ /** @hidden */
2
+ export declare const marbleProceduralTexturePixelShader: {
3
+ name: string;
4
+ shader: string;
5
+ };
@@ -1,7 +1,9 @@
1
- import { ShaderStore } from "@babylonjs/core/Engines/shaderStore.js";
2
- var name = 'marbleProceduralTexturePixelShader';
3
- var shader = "precision highp float;\nvarying vec2 vPosition;\nvarying vec2 vUV;\nuniform float numberOfTilesHeight;\nuniform float numberOfTilesWidth;\nuniform float amplitude;\nuniform vec3 marbleColor;\nuniform vec3 jointColor;\nconst vec3 tileSize=vec3(1.1,1.0,1.1);\nconst vec3 tilePct=vec3(0.98,1.0,0.98);\nfloat rand(vec2 n) {\nreturn fract(cos(dot(n,vec2(12.9898,4.1414)))*43758.5453);\n}\nfloat noise(vec2 n) {\nconst vec2 d=vec2(0.0,1.0);\nvec2 b=floor(n),f=smoothstep(vec2(0.0),vec2(1.0),fract(n));\nreturn mix(mix(rand(b),rand(b+d.yx),f.x),mix(rand(b+d.xy),rand(b+d.yy),f.x),f.y);\n}\nfloat turbulence(vec2 P)\n{\nfloat val=0.0;\nfloat freq=1.0;\nfor (int i=0; i<4; i++)\n{\nval+=abs(noise(P*freq)/freq);\nfreq*=2.07;\n}\nreturn val;\n}\nfloat roundF(float number){\nreturn sign(number)*floor(abs(number)+0.5);\n}\nvec3 marble_color(float x)\n{\nvec3 col;\nx=0.5*(x+1.);\nx=sqrt(x);\nx=sqrt(x);\nx=sqrt(x);\ncol=vec3(.2+.75*x);\ncol.b*=0.95;\nreturn col;\n}\nvoid main()\n{\nfloat brickW=1.0/numberOfTilesWidth;\nfloat brickH=1.0/numberOfTilesHeight;\nfloat jointWPercentage=0.01;\nfloat jointHPercentage=0.01;\nvec3 color=marbleColor;\nfloat yi=vUV.y/brickH;\nfloat nyi=roundF(yi);\nfloat xi=vUV.x/brickW;\nif (mod(floor(yi),2.0) == 0.0){\nxi=xi-0.5;\n}\nfloat nxi=roundF(xi);\nvec2 brickvUV=vec2((xi-floor(xi))/brickH,(yi-floor(yi))/brickW);\nif (yi<nyi+jointHPercentage && yi>nyi-jointHPercentage){\ncolor=mix(jointColor,vec3(0.37,0.25,0.25),(yi-nyi)/jointHPercentage+0.2);\n}\nelse if (xi<nxi+jointWPercentage && xi>nxi-jointWPercentage){\ncolor=mix(jointColor,vec3(0.44,0.44,0.44),(xi-nxi)/jointWPercentage+0.2);\n}\nelse {\nfloat t=6.28*brickvUV.x/(tileSize.x+noise(vec2(vUV)*6.0));\nt+=amplitude*turbulence(brickvUV.xy);\nt=sin(t);\ncolor=marble_color(t);\n}\ngl_FragColor=vec4(color,0.0);\n}";
4
- ShaderStore.ShadersStore[name] = shader;
5
- /** @hidden */
6
- export var marbleProceduralTexturePixelShader = { name: name, shader: shader };
1
+ // Do not edit.
2
+ import { ShaderStore } from "@babylonjs/core/Engines/shaderStore.js";
3
+ var name = "marbleProceduralTexturePixelShader";
4
+ var shader = "precision highp float;\nvarying vec2 vPosition;\nvarying vec2 vUV;\nuniform float numberOfTilesHeight;\nuniform float numberOfTilesWidth;\nuniform float amplitude;\nuniform vec3 marbleColor;\nuniform vec3 jointColor;\nconst vec3 tileSize=vec3(1.1,1.0,1.1);\nconst vec3 tilePct=vec3(0.98,1.0,0.98);\nfloat rand(vec2 n) {\nreturn fract(cos(dot(n,vec2(12.9898,4.1414)))*43758.5453);\n}\nfloat noise(vec2 n) {\nconst vec2 d=vec2(0.0,1.0);\nvec2 b=floor(n),f=smoothstep(vec2(0.0),vec2(1.0),fract(n));\nreturn mix(mix(rand(b),rand(b+d.yx),f.x),mix(rand(b+d.xy),rand(b+d.yy),f.x),f.y);\n}\nfloat turbulence(vec2 P)\n{\nfloat val=0.0;\nfloat freq=1.0;\nfor (int i=0; i<4; i++)\n{\nval+=abs(noise(P*freq)/freq);\nfreq*=2.07;\n}\nreturn val;\n}\nfloat roundF(float number){\nreturn sign(number)*floor(abs(number)+0.5);\n}\nvec3 marble_color(float x)\n{\nvec3 col;\nx=0.5*(x+1.);\nx=sqrt(x); \nx=sqrt(x);\nx=sqrt(x);\ncol=vec3(.2+.75*x); \ncol.b*=0.95; \nreturn col;\n}\nvoid main()\n{\nfloat brickW=1.0/numberOfTilesWidth;\nfloat brickH=1.0/numberOfTilesHeight;\nfloat jointWPercentage=0.01;\nfloat jointHPercentage=0.01;\nvec3 color=marbleColor;\nfloat yi=vUV.y/brickH;\nfloat nyi=roundF(yi);\nfloat xi=vUV.x/brickW;\nif (mod(floor(yi),2.0)==0.0){\nxi=xi-0.5;\n}\nfloat nxi=roundF(xi);\nvec2 brickvUV=vec2((xi-floor(xi))/brickH,(yi-floor(yi))/brickW);\nif (yi<nyi+jointHPercentage && yi>nyi-jointHPercentage){\ncolor=mix(jointColor,vec3(0.37,0.25,0.25),(yi-nyi)/jointHPercentage+0.2);\n}\nelse if (xi<nxi+jointWPercentage && xi>nxi-jointWPercentage){\ncolor=mix(jointColor,vec3(0.44,0.44,0.44),(xi-nxi)/jointWPercentage+0.2);\n}\nelse {\nfloat t=6.28*brickvUV.x/(tileSize.x+noise(vec2(vUV)*6.0));\nt+=amplitude*turbulence(brickvUV.xy);\nt=sin(t);\ncolor=marble_color(t);\n}\ngl_FragColor=vec4(color,0.0);\n}";
5
+ // Sideeffect
6
+ ShaderStore.ShadersStore[name] = shader;
7
+ /** @hidden */
8
+ export var marbleProceduralTexturePixelShader = { name: name, shader: shader };
7
9
  //# sourceMappingURL=marbleProceduralTexture.fragment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"marbleProceduralTexture.fragment.js","sourceRoot":"","sources":["../../../sourceES6/proceduralTexturesLibrary/src/marble/marbleProceduralTexture.fragment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,IAAI,IAAI,GAAG,oCAAoC,CAAC;AAChD,IAAI,MAAM,GAAG,uwDAuEX,CAAC;AAEH,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AACxC,cAAc;AACd,MAAM,CAAC,IAAI,kCAAkC,GAAG,EAAE,IAAI,MAAA,EAAE,MAAM,QAAA,EAAE,CAAC","sourcesContent":["import { ShaderStore } from \"@babylonjs/core/Engines/shaderStore\";\n\nlet name = 'marbleProceduralTexturePixelShader';\nlet shader = `precision highp float;\nvarying vec2 vPosition;\nvarying vec2 vUV;\nuniform float numberOfTilesHeight;\nuniform float numberOfTilesWidth;\nuniform float amplitude;\nuniform vec3 marbleColor;\nuniform vec3 jointColor;\nconst vec3 tileSize=vec3(1.1,1.0,1.1);\nconst vec3 tilePct=vec3(0.98,1.0,0.98);\nfloat rand(vec2 n) {\nreturn fract(cos(dot(n,vec2(12.9898,4.1414)))*43758.5453);\n}\nfloat noise(vec2 n) {\nconst vec2 d=vec2(0.0,1.0);\nvec2 b=floor(n),f=smoothstep(vec2(0.0),vec2(1.0),fract(n));\nreturn mix(mix(rand(b),rand(b+d.yx),f.x),mix(rand(b+d.xy),rand(b+d.yy),f.x),f.y);\n}\nfloat turbulence(vec2 P)\n{\nfloat val=0.0;\nfloat freq=1.0;\nfor (int i=0; i<4; i++)\n{\nval+=abs(noise(P*freq)/freq);\nfreq*=2.07;\n}\nreturn val;\n}\nfloat roundF(float number){\nreturn sign(number)*floor(abs(number)+0.5);\n}\nvec3 marble_color(float x)\n{\nvec3 col;\nx=0.5*(x+1.);\nx=sqrt(x);\nx=sqrt(x);\nx=sqrt(x);\ncol=vec3(.2+.75*x);\ncol.b*=0.95;\nreturn col;\n}\nvoid main()\n{\nfloat brickW=1.0/numberOfTilesWidth;\nfloat brickH=1.0/numberOfTilesHeight;\nfloat jointWPercentage=0.01;\nfloat jointHPercentage=0.01;\nvec3 color=marbleColor;\nfloat yi=vUV.y/brickH;\nfloat nyi=roundF(yi);\nfloat xi=vUV.x/brickW;\nif (mod(floor(yi),2.0) == 0.0){\nxi=xi-0.5;\n}\nfloat nxi=roundF(xi);\nvec2 brickvUV=vec2((xi-floor(xi))/brickH,(yi-floor(yi))/brickW);\nif (yi<nyi+jointHPercentage && yi>nyi-jointHPercentage){\ncolor=mix(jointColor,vec3(0.37,0.25,0.25),(yi-nyi)/jointHPercentage+0.2);\n}\nelse if (xi<nxi+jointWPercentage && xi>nxi-jointWPercentage){\ncolor=mix(jointColor,vec3(0.44,0.44,0.44),(xi-nxi)/jointWPercentage+0.2);\n}\nelse {\nfloat t=6.28*brickvUV.x/(tileSize.x+noise(vec2(vUV)*6.0));\nt+=amplitude*turbulence(brickvUV.xy);\nt=sin(t);\ncolor=marble_color(t);\n}\ngl_FragColor=vec4(color,0.0);\n}`;\n\nShaderStore.ShadersStore[name] = shader;\n/** @hidden */\nexport var marbleProceduralTexturePixelShader = { name, shader };\n"]}
1
+ {"version":3,"file":"marbleProceduralTexture.fragment.js","sourceRoot":"","sources":["../../../../../lts/proceduralTextures/generated/marble/marbleProceduralTexture.fragment.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EAAE,WAAW,EAAE,+CAAiC;AAEvD,IAAM,IAAI,GAAG,oCAAoC,CAAC;AAClD,IAAM,MAAM,GAAG,wwDAuEb,CAAC;AACH,aAAa;AACb,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AACxC,cAAc;AACd,MAAM,CAAC,IAAM,kCAAkC,GAAG,EAAE,IAAI,MAAA,EAAE,MAAM,QAAA,EAAE,CAAC","sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"core/Engines/shaderStore\";\n\nconst name = \"marbleProceduralTexturePixelShader\";\nconst shader = `precision highp float;\rvarying vec2 vPosition;\rvarying vec2 vUV;\runiform float numberOfTilesHeight;\runiform float numberOfTilesWidth;\runiform float amplitude;\runiform vec3 marbleColor;\runiform vec3 jointColor;\rconst vec3 tileSize=vec3(1.1,1.0,1.1);\rconst vec3 tilePct=vec3(0.98,1.0,0.98);\rfloat rand(vec2 n) {\rreturn fract(cos(dot(n,vec2(12.9898,4.1414)))*43758.5453);\r}\rfloat noise(vec2 n) {\rconst vec2 d=vec2(0.0,1.0);\rvec2 b=floor(n),f=smoothstep(vec2(0.0),vec2(1.0),fract(n));\rreturn mix(mix(rand(b),rand(b+d.yx),f.x),mix(rand(b+d.xy),rand(b+d.yy),f.x),f.y);\r}\rfloat turbulence(vec2 P)\r{\rfloat val=0.0;\rfloat freq=1.0;\rfor (int i=0; i<4; i++)\r{\rval+=abs(noise(P*freq)/freq);\rfreq*=2.07;\r}\rreturn val;\r}\rfloat roundF(float number){\rreturn sign(number)*floor(abs(number)+0.5);\r}\rvec3 marble_color(float x)\r{\rvec3 col;\rx=0.5*(x+1.);\rx=sqrt(x); \rx=sqrt(x);\rx=sqrt(x);\rcol=vec3(.2+.75*x); \rcol.b*=0.95; \rreturn col;\r}\rvoid main()\r{\rfloat brickW=1.0/numberOfTilesWidth;\rfloat brickH=1.0/numberOfTilesHeight;\rfloat jointWPercentage=0.01;\rfloat jointHPercentage=0.01;\rvec3 color=marbleColor;\rfloat yi=vUV.y/brickH;\rfloat nyi=roundF(yi);\rfloat xi=vUV.x/brickW;\rif (mod(floor(yi),2.0)==0.0){\rxi=xi-0.5;\r}\rfloat nxi=roundF(xi);\rvec2 brickvUV=vec2((xi-floor(xi))/brickH,(yi-floor(yi))/brickW);\rif (yi<nyi+jointHPercentage && yi>nyi-jointHPercentage){\rcolor=mix(jointColor,vec3(0.37,0.25,0.25),(yi-nyi)/jointHPercentage+0.2);\r}\relse if (xi<nxi+jointWPercentage && xi>nxi-jointWPercentage){\rcolor=mix(jointColor,vec3(0.44,0.44,0.44),(xi-nxi)/jointWPercentage+0.2);\r}\relse {\rfloat t=6.28*brickvUV.x/(tileSize.x+noise(vec2(vUV)*6.0));\rt+=amplitude*turbulence(brickvUV.xy);\rt=sin(t);\rcolor=marble_color(t);\r}\rgl_FragColor=vec4(color,0.0);\r}`;\n// Sideeffect\nShaderStore.ShadersStore[name] = shader;\n/** @hidden */\nexport const marbleProceduralTexturePixelShader = { name, shader };\n"]}
@@ -1,105 +1,105 @@
1
- import { __decorate, __extends } from "tslib";
2
- import { serialize, SerializationHelper } from "@babylonjs/core/Misc/decorators.js";
3
- import { Color3 } from "@babylonjs/core/Maths/math.color.js";
4
- import { ProceduralTexture } from "@babylonjs/core/Materials/Textures/Procedurals/proceduralTexture.js";
5
- import { RegisterClass } from '@babylonjs/core/Misc/typeStore.js';
6
- import "./marbleProceduralTexture.fragment.js";
7
- var MarbleProceduralTexture = /** @class */ (function (_super) {
8
- __extends(MarbleProceduralTexture, _super);
9
- function MarbleProceduralTexture(name, size, scene, fallbackTexture, generateMipMaps) {
10
- if (scene === void 0) { scene = null; }
11
- var _this = _super.call(this, name, size, "marbleProceduralTexture", scene, fallbackTexture, generateMipMaps) || this;
12
- _this._numberOfTilesHeight = 3;
13
- _this._numberOfTilesWidth = 3;
14
- _this._amplitude = 9.0;
15
- _this._jointColor = new Color3(0.72, 0.72, 0.72);
16
- _this.updateShaderUniforms();
17
- return _this;
18
- }
19
- MarbleProceduralTexture.prototype.updateShaderUniforms = function () {
20
- this.setFloat("numberOfTilesHeight", this._numberOfTilesHeight);
21
- this.setFloat("numberOfTilesWidth", this._numberOfTilesWidth);
22
- this.setFloat("amplitude", this._amplitude);
23
- this.setColor3("jointColor", this._jointColor);
24
- };
25
- Object.defineProperty(MarbleProceduralTexture.prototype, "numberOfTilesHeight", {
26
- get: function () {
27
- return this._numberOfTilesHeight;
28
- },
29
- set: function (value) {
30
- this._numberOfTilesHeight = value;
31
- this.updateShaderUniforms();
32
- },
33
- enumerable: false,
34
- configurable: true
35
- });
36
- Object.defineProperty(MarbleProceduralTexture.prototype, "amplitude", {
37
- get: function () {
38
- return this._amplitude;
39
- },
40
- set: function (value) {
41
- this._amplitude = value;
42
- this.updateShaderUniforms();
43
- },
44
- enumerable: false,
45
- configurable: true
46
- });
47
- Object.defineProperty(MarbleProceduralTexture.prototype, "numberOfTilesWidth", {
48
- get: function () {
49
- return this._numberOfTilesWidth;
50
- },
51
- set: function (value) {
52
- this._numberOfTilesWidth = value;
53
- this.updateShaderUniforms();
54
- },
55
- enumerable: false,
56
- configurable: true
57
- });
58
- Object.defineProperty(MarbleProceduralTexture.prototype, "jointColor", {
59
- get: function () {
60
- return this._jointColor;
61
- },
62
- set: function (value) {
63
- this._jointColor = value;
64
- this.updateShaderUniforms();
65
- },
66
- enumerable: false,
67
- configurable: true
68
- });
69
- /**
70
- * Serializes this marble procedural texture
71
- * @returns a serialized marble procedural texture object
72
- */
73
- MarbleProceduralTexture.prototype.serialize = function () {
74
- var serializationObject = SerializationHelper.Serialize(this, _super.prototype.serialize.call(this));
75
- serializationObject.customType = "BABYLON.MarbleProceduralTexture";
76
- return serializationObject;
77
- };
78
- /**
79
- * Creates a Marble Procedural Texture from parsed marble procedural texture data
80
- * @param parsedTexture defines parsed texture data
81
- * @param scene defines the current scene
82
- * @param rootUrl defines the root URL containing marble procedural texture information
83
- * @returns a parsed Marble Procedural Texture
84
- */
85
- MarbleProceduralTexture.Parse = function (parsedTexture, scene, rootUrl) {
86
- var texture = SerializationHelper.Parse(function () { return new MarbleProceduralTexture(parsedTexture.name, parsedTexture._size, scene, undefined, parsedTexture._generateMipMaps); }, parsedTexture, scene, rootUrl);
87
- return texture;
88
- };
89
- __decorate([
90
- serialize()
91
- ], MarbleProceduralTexture.prototype, "numberOfTilesHeight", null);
92
- __decorate([
93
- serialize()
94
- ], MarbleProceduralTexture.prototype, "amplitude", null);
95
- __decorate([
96
- serialize()
97
- ], MarbleProceduralTexture.prototype, "numberOfTilesWidth", null);
98
- __decorate([
99
- serialize()
100
- ], MarbleProceduralTexture.prototype, "jointColor", null);
101
- return MarbleProceduralTexture;
102
- }(ProceduralTexture));
103
- export { MarbleProceduralTexture };
104
- RegisterClass("BABYLON.MarbleProceduralTexture", MarbleProceduralTexture);
1
+ import { __decorate, __extends } from "tslib";
2
+ import { serialize, SerializationHelper } from "@babylonjs/core/Misc/decorators.js";
3
+ import { Color3 } from "@babylonjs/core/Maths/math.color.js";
4
+ import { ProceduralTexture } from "@babylonjs/core/Materials/Textures/Procedurals/proceduralTexture.js";
5
+ import { RegisterClass } from "@babylonjs/core/Misc/typeStore.js";
6
+ import "./marbleProceduralTexture.fragment";
7
+ var MarbleProceduralTexture = /** @class */ (function (_super) {
8
+ __extends(MarbleProceduralTexture, _super);
9
+ function MarbleProceduralTexture(name, size, scene, fallbackTexture, generateMipMaps) {
10
+ if (scene === void 0) { scene = null; }
11
+ var _this = _super.call(this, name, size, "marbleProceduralTexture", scene, fallbackTexture, generateMipMaps) || this;
12
+ _this._numberOfTilesHeight = 3;
13
+ _this._numberOfTilesWidth = 3;
14
+ _this._amplitude = 9.0;
15
+ _this._jointColor = new Color3(0.72, 0.72, 0.72);
16
+ _this.updateShaderUniforms();
17
+ return _this;
18
+ }
19
+ MarbleProceduralTexture.prototype.updateShaderUniforms = function () {
20
+ this.setFloat("numberOfTilesHeight", this._numberOfTilesHeight);
21
+ this.setFloat("numberOfTilesWidth", this._numberOfTilesWidth);
22
+ this.setFloat("amplitude", this._amplitude);
23
+ this.setColor3("jointColor", this._jointColor);
24
+ };
25
+ Object.defineProperty(MarbleProceduralTexture.prototype, "numberOfTilesHeight", {
26
+ get: function () {
27
+ return this._numberOfTilesHeight;
28
+ },
29
+ set: function (value) {
30
+ this._numberOfTilesHeight = value;
31
+ this.updateShaderUniforms();
32
+ },
33
+ enumerable: false,
34
+ configurable: true
35
+ });
36
+ Object.defineProperty(MarbleProceduralTexture.prototype, "amplitude", {
37
+ get: function () {
38
+ return this._amplitude;
39
+ },
40
+ set: function (value) {
41
+ this._amplitude = value;
42
+ this.updateShaderUniforms();
43
+ },
44
+ enumerable: false,
45
+ configurable: true
46
+ });
47
+ Object.defineProperty(MarbleProceduralTexture.prototype, "numberOfTilesWidth", {
48
+ get: function () {
49
+ return this._numberOfTilesWidth;
50
+ },
51
+ set: function (value) {
52
+ this._numberOfTilesWidth = value;
53
+ this.updateShaderUniforms();
54
+ },
55
+ enumerable: false,
56
+ configurable: true
57
+ });
58
+ Object.defineProperty(MarbleProceduralTexture.prototype, "jointColor", {
59
+ get: function () {
60
+ return this._jointColor;
61
+ },
62
+ set: function (value) {
63
+ this._jointColor = value;
64
+ this.updateShaderUniforms();
65
+ },
66
+ enumerable: false,
67
+ configurable: true
68
+ });
69
+ /**
70
+ * Serializes this marble procedural texture
71
+ * @returns a serialized marble procedural texture object
72
+ */
73
+ MarbleProceduralTexture.prototype.serialize = function () {
74
+ var serializationObject = SerializationHelper.Serialize(this, _super.prototype.serialize.call(this));
75
+ serializationObject.customType = "BABYLON.MarbleProceduralTexture";
76
+ return serializationObject;
77
+ };
78
+ /**
79
+ * Creates a Marble Procedural Texture from parsed marble procedural texture data
80
+ * @param parsedTexture defines parsed texture data
81
+ * @param scene defines the current scene
82
+ * @param rootUrl defines the root URL containing marble procedural texture information
83
+ * @returns a parsed Marble Procedural Texture
84
+ */
85
+ MarbleProceduralTexture.Parse = function (parsedTexture, scene, rootUrl) {
86
+ var texture = SerializationHelper.Parse(function () { return new MarbleProceduralTexture(parsedTexture.name, parsedTexture._size, scene, undefined, parsedTexture._generateMipMaps); }, parsedTexture, scene, rootUrl);
87
+ return texture;
88
+ };
89
+ __decorate([
90
+ serialize()
91
+ ], MarbleProceduralTexture.prototype, "numberOfTilesHeight", null);
92
+ __decorate([
93
+ serialize()
94
+ ], MarbleProceduralTexture.prototype, "amplitude", null);
95
+ __decorate([
96
+ serialize()
97
+ ], MarbleProceduralTexture.prototype, "numberOfTilesWidth", null);
98
+ __decorate([
99
+ serialize()
100
+ ], MarbleProceduralTexture.prototype, "jointColor", null);
101
+ return MarbleProceduralTexture;
102
+ }(ProceduralTexture));
103
+ export { MarbleProceduralTexture };
104
+ RegisterClass("BABYLON.MarbleProceduralTexture", MarbleProceduralTexture);
105
105
  //# sourceMappingURL=marbleProceduralTexture.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"marbleProceduralTexture.js","sourceRoot":"","sources":["../../../sourceES6/proceduralTexturesLibrary/src/marble/marbleProceduralTexture.ts"],"names":[],"mappings":"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","sourcesContent":["import { serialize, SerializationHelper } from \"@babylonjs/core/Misc/decorators\";\r\nimport { Color3 } from \"@babylonjs/core/Maths/math.color\";\r\nimport { Texture } from \"@babylonjs/core/Materials/Textures/texture\";\r\nimport { ProceduralTexture } from \"@babylonjs/core/Materials/Textures/Procedurals/proceduralTexture\";\r\nimport { Scene } from \"@babylonjs/core/scene\";\r\nimport { RegisterClass } from '@babylonjs/core/Misc/typeStore';\r\nimport { Nullable } from \"@babylonjs/core/types\";\r\n\r\nimport \"./marbleProceduralTexture.fragment\";\r\n\r\nexport class MarbleProceduralTexture extends ProceduralTexture {\r\n private _numberOfTilesHeight: number = 3;\r\n private _numberOfTilesWidth: number = 3;\r\n private _amplitude: number = 9.0;\r\n private _jointColor = new Color3(0.72, 0.72, 0.72);\r\n\r\n constructor(name: string, size: number, scene: Nullable<Scene> = null, fallbackTexture?: Texture, generateMipMaps?: boolean) {\r\n super(name, size, \"marbleProceduralTexture\", scene, fallbackTexture, generateMipMaps);\r\n this.updateShaderUniforms();\r\n }\r\n\r\n public updateShaderUniforms() {\r\n this.setFloat(\"numberOfTilesHeight\", this._numberOfTilesHeight);\r\n this.setFloat(\"numberOfTilesWidth\", this._numberOfTilesWidth);\r\n this.setFloat(\"amplitude\", this._amplitude);\r\n this.setColor3(\"jointColor\", this._jointColor);\r\n }\r\n\r\n @serialize()\r\n public get numberOfTilesHeight(): number {\r\n return this._numberOfTilesHeight;\r\n }\r\n\r\n public set numberOfTilesHeight(value: number) {\r\n this._numberOfTilesHeight = value;\r\n this.updateShaderUniforms();\r\n }\r\n\r\n @serialize()\r\n public get amplitude(): number {\r\n return this._amplitude;\r\n }\r\n\r\n public set amplitude(value: number) {\r\n this._amplitude = value;\r\n this.updateShaderUniforms();\r\n }\r\n\r\n @serialize()\r\n public get numberOfTilesWidth(): number {\r\n return this._numberOfTilesWidth;\r\n }\r\n\r\n public set numberOfTilesWidth(value: number) {\r\n this._numberOfTilesWidth = value;\r\n this.updateShaderUniforms();\r\n }\r\n\r\n @serialize()\r\n public get jointColor(): Color3 {\r\n return this._jointColor;\r\n }\r\n\r\n public set jointColor(value: Color3) {\r\n this._jointColor = value;\r\n this.updateShaderUniforms();\r\n }\r\n\r\n /**\r\n * Serializes this marble procedural texture\r\n * @returns a serialized marble procedural texture object\r\n */\r\n public serialize(): any {\r\n var serializationObject = SerializationHelper.Serialize(this, super.serialize());\r\n serializationObject.customType = \"BABYLON.MarbleProceduralTexture\";\r\n\r\n return serializationObject;\r\n }\r\n\r\n /**\r\n * Creates a Marble Procedural Texture from parsed marble procedural texture data\r\n * @param parsedTexture defines parsed texture data\r\n * @param scene defines the current scene\r\n * @param rootUrl defines the root URL containing marble procedural texture information\r\n * @returns a parsed Marble Procedural Texture\r\n */\r\n public static Parse(parsedTexture: any, scene: Scene, rootUrl: string): MarbleProceduralTexture {\r\n var texture = SerializationHelper.Parse(() => new MarbleProceduralTexture(parsedTexture.name, parsedTexture._size, scene, undefined, parsedTexture._generateMipMaps), parsedTexture, scene, rootUrl);\r\n\r\n return texture;\r\n }\r\n}\r\n\r\nRegisterClass(\"BABYLON.MarbleProceduralTexture\", MarbleProceduralTexture);"]}
1
+ {"version":3,"file":"marbleProceduralTexture.js","sourceRoot":"","sources":["../../../../../lts/proceduralTextures/generated/marble/marbleProceduralTexture.ts"],"names":[],"mappings":"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","sourcesContent":["import { serialize, SerializationHelper } from \"core/Misc/decorators\";\r\nimport { Color3 } from \"core/Maths/math.color\";\r\nimport type { Texture } from \"core/Materials/Textures/texture\";\r\nimport { ProceduralTexture } from \"core/Materials/Textures/Procedurals/proceduralTexture\";\r\nimport type { Scene } from \"core/scene\";\r\nimport { RegisterClass } from \"core/Misc/typeStore\";\r\nimport type { Nullable } from \"core/types\";\r\n\r\nimport \"./marbleProceduralTexture.fragment\";\r\n\r\nexport class MarbleProceduralTexture extends ProceduralTexture {\r\n private _numberOfTilesHeight: number = 3;\r\n private _numberOfTilesWidth: number = 3;\r\n private _amplitude: number = 9.0;\r\n private _jointColor = new Color3(0.72, 0.72, 0.72);\r\n\r\n constructor(name: string, size: number, scene: Nullable<Scene> = null, fallbackTexture?: Texture, generateMipMaps?: boolean) {\r\n super(name, size, \"marbleProceduralTexture\", scene, fallbackTexture, generateMipMaps);\r\n this.updateShaderUniforms();\r\n }\r\n\r\n public updateShaderUniforms() {\r\n this.setFloat(\"numberOfTilesHeight\", this._numberOfTilesHeight);\r\n this.setFloat(\"numberOfTilesWidth\", this._numberOfTilesWidth);\r\n this.setFloat(\"amplitude\", this._amplitude);\r\n this.setColor3(\"jointColor\", this._jointColor);\r\n }\r\n\r\n @serialize()\r\n public get numberOfTilesHeight(): number {\r\n return this._numberOfTilesHeight;\r\n }\r\n\r\n public set numberOfTilesHeight(value: number) {\r\n this._numberOfTilesHeight = value;\r\n this.updateShaderUniforms();\r\n }\r\n\r\n @serialize()\r\n public get amplitude(): number {\r\n return this._amplitude;\r\n }\r\n\r\n public set amplitude(value: number) {\r\n this._amplitude = value;\r\n this.updateShaderUniforms();\r\n }\r\n\r\n @serialize()\r\n public get numberOfTilesWidth(): number {\r\n return this._numberOfTilesWidth;\r\n }\r\n\r\n public set numberOfTilesWidth(value: number) {\r\n this._numberOfTilesWidth = value;\r\n this.updateShaderUniforms();\r\n }\r\n\r\n @serialize()\r\n public get jointColor(): Color3 {\r\n return this._jointColor;\r\n }\r\n\r\n public set jointColor(value: Color3) {\r\n this._jointColor = value;\r\n this.updateShaderUniforms();\r\n }\r\n\r\n /**\r\n * Serializes this marble procedural texture\r\n * @returns a serialized marble procedural texture object\r\n */\r\n public serialize(): any {\r\n const serializationObject = SerializationHelper.Serialize(this, super.serialize());\r\n serializationObject.customType = \"BABYLON.MarbleProceduralTexture\";\r\n\r\n return serializationObject;\r\n }\r\n\r\n /**\r\n * Creates a Marble Procedural Texture from parsed marble procedural texture data\r\n * @param parsedTexture defines parsed texture data\r\n * @param scene defines the current scene\r\n * @param rootUrl defines the root URL containing marble procedural texture information\r\n * @returns a parsed Marble Procedural Texture\r\n */\r\n public static Parse(parsedTexture: any, scene: Scene, rootUrl: string): MarbleProceduralTexture {\r\n const texture = SerializationHelper.Parse(\r\n () => new MarbleProceduralTexture(parsedTexture.name, parsedTexture._size, scene, undefined, parsedTexture._generateMipMaps),\r\n parsedTexture,\r\n scene,\r\n rootUrl\r\n );\r\n\r\n return texture;\r\n }\r\n}\r\n\r\nRegisterClass(\"BABYLON.MarbleProceduralTexture\", MarbleProceduralTexture);\r\n"]}
@@ -1 +1 @@
1
- export * from "./normalMapProceduralTexture";
1
+ export * from "./normalMapProceduralTexture";
@@ -1,2 +1,2 @@
1
- export * from "./normalMapProceduralTexture.js";
1
+ export * from "./normalMapProceduralTexture";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../sourceES6/proceduralTexturesLibrary/src/normalMap/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC","sourcesContent":["export * from \"./normalMapProceduralTexture\";"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lts/proceduralTextures/generated/normalMap/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC","sourcesContent":["export * from \"./normalMapProceduralTexture\";\r\n"]}