@onerjs/core 8.28.2 → 8.28.4

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 (90) hide show
  1. package/Engines/abstractEngine.js +2 -2
  2. package/Engines/abstractEngine.js.map +1 -1
  3. package/Materials/PBR/openPbrMaterial.d.ts +60 -0
  4. package/Materials/PBR/openPbrMaterial.js +98 -7
  5. package/Materials/PBR/openPbrMaterial.js.map +1 -1
  6. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +11 -9
  7. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
  8. package/Meshes/abstractMesh.d.ts +0 -20
  9. package/Meshes/abstractMesh.js +0 -44
  10. package/Meshes/abstractMesh.js.map +1 -1
  11. package/Misc/brdfTextureTools.d.ts +12 -0
  12. package/Misc/brdfTextureTools.js +36 -6
  13. package/Misc/brdfTextureTools.js.map +1 -1
  14. package/Shaders/ShadersInclude/gaussianSplatting.js +9 -4
  15. package/Shaders/ShadersInclude/gaussianSplatting.js.map +1 -1
  16. package/Shaders/ShadersInclude/openpbrBaseLayerData.js +1 -1
  17. package/Shaders/ShadersInclude/openpbrBaseLayerData.js.map +1 -1
  18. package/Shaders/ShadersInclude/openpbrDirectLighting.js +10 -2
  19. package/Shaders/ShadersInclude/openpbrDirectLighting.js.map +1 -1
  20. package/Shaders/ShadersInclude/openpbrEnvironmentLighting.js +24 -2
  21. package/Shaders/ShadersInclude/openpbrEnvironmentLighting.js.map +1 -1
  22. package/Shaders/ShadersInclude/openpbrFragmentDeclaration.js +10 -1
  23. package/Shaders/ShadersInclude/openpbrFragmentDeclaration.js.map +1 -1
  24. package/Shaders/ShadersInclude/openpbrFragmentSamplersDeclaration.js +8 -2
  25. package/Shaders/ShadersInclude/openpbrFragmentSamplersDeclaration.js.map +1 -1
  26. package/Shaders/ShadersInclude/openpbrFuzzLayerData.d.ts +5 -0
  27. package/Shaders/ShadersInclude/openpbrFuzzLayerData.js +40 -0
  28. package/Shaders/ShadersInclude/openpbrFuzzLayerData.js.map +1 -0
  29. package/Shaders/ShadersInclude/openpbrGeometryInfo.js +2 -8
  30. package/Shaders/ShadersInclude/openpbrGeometryInfo.js.map +1 -1
  31. package/Shaders/ShadersInclude/openpbrNormalMapFragment.js +1 -1
  32. package/Shaders/ShadersInclude/openpbrNormalMapFragment.js.map +1 -1
  33. package/Shaders/ShadersInclude/openpbrNormalMapFragmentMainFunctions.js +1 -1
  34. package/Shaders/ShadersInclude/openpbrNormalMapFragmentMainFunctions.js.map +1 -1
  35. package/Shaders/ShadersInclude/openpbrNormalMapVertex.js +1 -1
  36. package/Shaders/ShadersInclude/openpbrNormalMapVertex.js.map +1 -1
  37. package/Shaders/ShadersInclude/openpbrNormalMapVertexDeclaration.js +1 -1
  38. package/Shaders/ShadersInclude/openpbrNormalMapVertexDeclaration.js.map +1 -1
  39. package/Shaders/ShadersInclude/openpbrUboDeclaration.js +1 -1
  40. package/Shaders/ShadersInclude/openpbrUboDeclaration.js.map +1 -1
  41. package/Shaders/ShadersInclude/openpbrVertexDeclaration.js +9 -0
  42. package/Shaders/ShadersInclude/openpbrVertexDeclaration.js.map +1 -1
  43. package/Shaders/ShadersInclude/pbrBRDFFunctions.js +3 -0
  44. package/Shaders/ShadersInclude/pbrBRDFFunctions.js.map +1 -1
  45. package/Shaders/ShadersInclude/pbrDirectLightingFunctions.js +9 -0
  46. package/Shaders/ShadersInclude/pbrDirectLightingFunctions.js.map +1 -1
  47. package/Shaders/openpbr.fragment.d.ts +1 -0
  48. package/Shaders/openpbr.fragment.js +8 -1
  49. package/Shaders/openpbr.fragment.js.map +1 -1
  50. package/Shaders/openpbr.vertex.js +6 -0
  51. package/Shaders/openpbr.vertex.js.map +1 -1
  52. package/ShadersWGSL/ShadersInclude/gaussianSplatting.js +10 -6
  53. package/ShadersWGSL/ShadersInclude/gaussianSplatting.js.map +1 -1
  54. package/ShadersWGSL/ShadersInclude/openpbrDirectLighting.js +10 -2
  55. package/ShadersWGSL/ShadersInclude/openpbrDirectLighting.js.map +1 -1
  56. package/ShadersWGSL/ShadersInclude/openpbrEnvironmentLighting.js +25 -2
  57. package/ShadersWGSL/ShadersInclude/openpbrEnvironmentLighting.js.map +1 -1
  58. package/ShadersWGSL/ShadersInclude/openpbrFragmentSamplersDeclaration.js +6 -0
  59. package/ShadersWGSL/ShadersInclude/openpbrFragmentSamplersDeclaration.js.map +1 -1
  60. package/ShadersWGSL/ShadersInclude/openpbrFuzzLayerData.d.ts +5 -0
  61. package/ShadersWGSL/ShadersInclude/openpbrFuzzLayerData.js +40 -0
  62. package/ShadersWGSL/ShadersInclude/openpbrFuzzLayerData.js.map +1 -0
  63. package/ShadersWGSL/ShadersInclude/openpbrGeometryInfo.js +2 -8
  64. package/ShadersWGSL/ShadersInclude/openpbrGeometryInfo.js.map +1 -1
  65. package/ShadersWGSL/ShadersInclude/openpbrNormalMapFragment.js +1 -1
  66. package/ShadersWGSL/ShadersInclude/openpbrNormalMapFragment.js.map +1 -1
  67. package/ShadersWGSL/ShadersInclude/openpbrNormalMapFragmentMainFunctions.js +1 -1
  68. package/ShadersWGSL/ShadersInclude/openpbrNormalMapFragmentMainFunctions.js.map +1 -1
  69. package/ShadersWGSL/ShadersInclude/openpbrNormalMapVertex.js +1 -1
  70. package/ShadersWGSL/ShadersInclude/openpbrNormalMapVertex.js.map +1 -1
  71. package/ShadersWGSL/ShadersInclude/openpbrNormalMapVertexDeclaration.js +1 -1
  72. package/ShadersWGSL/ShadersInclude/openpbrNormalMapVertexDeclaration.js.map +1 -1
  73. package/ShadersWGSL/ShadersInclude/openpbrUboDeclaration.js +1 -1
  74. package/ShadersWGSL/ShadersInclude/openpbrUboDeclaration.js.map +1 -1
  75. package/ShadersWGSL/ShadersInclude/pbrBRDFFunctions.js +3 -0
  76. package/ShadersWGSL/ShadersInclude/pbrBRDFFunctions.js.map +1 -1
  77. package/ShadersWGSL/ShadersInclude/pbrDirectLightingFunctions.js +9 -0
  78. package/ShadersWGSL/ShadersInclude/pbrDirectLightingFunctions.js.map +1 -1
  79. package/ShadersWGSL/openpbr.fragment.d.ts +1 -0
  80. package/ShadersWGSL/openpbr.fragment.js +8 -1
  81. package/ShadersWGSL/openpbr.fragment.js.map +1 -1
  82. package/ShadersWGSL/openpbr.vertex.js +6 -0
  83. package/ShadersWGSL/openpbr.vertex.js.map +1 -1
  84. package/node.d.ts +16 -0
  85. package/node.js +32 -0
  86. package/node.js.map +1 -1
  87. package/package.json +1 -1
  88. package/scene.d.ts +3 -1
  89. package/scene.js +2 -2
  90. package/scene.js.map +1 -1
@@ -133,11 +133,6 @@ declare class _InternalAbstractMeshDataInfo {
133
133
  * We use that as a clue to force the material to sideOrientation = null
134
134
  */
135
135
  _sideOrientationHint: boolean;
136
- /**
137
- * @internal
138
- * if this is set to true, the mesh will be visible only if its parent(s) are also visible
139
- */
140
- _inheritVisibility: boolean;
141
136
  /**
142
137
  * Used in frame graph mode only, to know which meshes to update when in frozen mode
143
138
  */
@@ -321,21 +316,6 @@ export declare abstract class AbstractMesh extends TransformNode implements IDis
321
316
  * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/advanced/transparent_rendering#alpha-index
322
317
  */
323
318
  alphaIndex: number;
324
- /**
325
- * If set to true, a mesh will only be visible only if its parent(s) are also visible (default is false)
326
- */
327
- get inheritVisibility(): boolean;
328
- set inheritVisibility(value: boolean);
329
- /**
330
- * Control if the mesh is visible by system define
331
- */
332
- _isSystemVisible: boolean;
333
- private _isVisible;
334
- /**
335
- * Gets or sets a boolean indicating if the mesh is visible (renderable). Default is true
336
- */
337
- get isVisible(): boolean;
338
- set isVisible(value: boolean);
339
319
  /**
340
320
  * Gets or sets a boolean indicating if the mesh can be picked (by scene.pick for instance or through actions). Default is true
341
321
  */
@@ -151,11 +151,6 @@ class _InternalAbstractMeshDataInfo {
151
151
  * We use that as a clue to force the material to sideOrientation = null
152
152
  */
153
153
  this._sideOrientationHint = false;
154
- /**
155
- * @internal
156
- * if this is set to true, the mesh will be visible only if its parent(s) are also visible
157
- */
158
- this._inheritVisibility = false;
159
154
  /**
160
155
  * Used in frame graph mode only, to know which meshes to update when in frozen mode
161
156
  */
@@ -343,40 +338,6 @@ export class AbstractMesh extends TransformNode {
343
338
  });
344
339
  }
345
340
  }
346
- /**
347
- * If set to true, a mesh will only be visible only if its parent(s) are also visible (default is false)
348
- */
349
- get inheritVisibility() {
350
- return this._internalAbstractMeshDataInfo._inheritVisibility;
351
- }
352
- set inheritVisibility(value) {
353
- this._internalAbstractMeshDataInfo._inheritVisibility = value;
354
- }
355
- /**
356
- * Gets or sets a boolean indicating if the mesh is visible (renderable). Default is true
357
- */
358
- get isVisible() {
359
- if (!this._isSystemVisible) {
360
- return false;
361
- }
362
- if (!this._isVisible || !this.inheritVisibility || !this._parentNode) {
363
- return this._isVisible;
364
- }
365
- if (this._isVisible) {
366
- let parent = this._parentNode;
367
- while (parent) {
368
- const parentVisible = parent.isVisible;
369
- if (typeof parentVisible !== "undefined") {
370
- return parentVisible;
371
- }
372
- parent = parent.parent;
373
- }
374
- }
375
- return this._isVisible;
376
- }
377
- set isVisible(value) {
378
- this._isVisible = value;
379
- }
380
341
  /**
381
342
  * Gets or sets the property which disables the test that is checking that the mesh under the pointer is the same than the previous time we tested for it (default: false).
382
343
  * Set this property to true if you want thin instances picking to be reported accurately when moving over the mesh.
@@ -675,11 +636,6 @@ export class AbstractMesh extends TransformNode {
675
636
  * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/advanced/transparent_rendering#alpha-index
676
637
  */
677
638
  this.alphaIndex = Number.MAX_VALUE;
678
- /**
679
- * Control if the mesh is visible by system define
680
- */
681
- this._isSystemVisible = true;
682
- this._isVisible = true;
683
639
  /**
684
640
  * Gets or sets a boolean indicating if the mesh can be picked (by scene.pick for instance or through actions). Default is true
685
641
  */