@babylonjs/core 6.42.0 → 6.44.0

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 (107) hide show
  1. package/Animations/animatable.js +2 -2
  2. package/Animations/animatable.js.map +1 -1
  3. package/Animations/animationGroup.d.ts +4 -2
  4. package/Animations/animationGroup.js +22 -2
  5. package/Animations/animationGroup.js.map +1 -1
  6. package/Cameras/arcRotateCamera.js +7 -1
  7. package/Cameras/arcRotateCamera.js.map +1 -1
  8. package/Culling/ray.d.ts +12 -1
  9. package/Culling/ray.js +20 -3
  10. package/Culling/ray.js.map +1 -1
  11. package/Debug/skeletonViewer.d.ts +2 -0
  12. package/Debug/skeletonViewer.js +111 -50
  13. package/Debug/skeletonViewer.js.map +1 -1
  14. package/Engines/engine.d.ts +14 -3
  15. package/Engines/engine.js +11 -0
  16. package/Engines/engine.js.map +1 -1
  17. package/Engines/nullEngine.d.ts +2 -0
  18. package/Engines/nullEngine.js +3 -0
  19. package/Engines/nullEngine.js.map +1 -1
  20. package/Engines/thinEngine.d.ts +4 -1
  21. package/Engines/thinEngine.js +2 -2
  22. package/Engines/thinEngine.js.map +1 -1
  23. package/Inputs/scene.inputManager.js +2 -2
  24. package/Inputs/scene.inputManager.js.map +1 -1
  25. package/Materials/Node/Blocks/Fragment/heightToNormalBlock.js +1 -1
  26. package/Materials/Node/Blocks/Fragment/heightToNormalBlock.js.map +1 -1
  27. package/Materials/Node/nodeMaterial.d.ts +50 -0
  28. package/Materials/Node/nodeMaterial.js +50 -0
  29. package/Materials/Node/nodeMaterial.js.map +1 -1
  30. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +1 -1
  31. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
  32. package/Meshes/GreasedLine/greasedLineBaseMesh.d.ts +3 -1
  33. package/Meshes/GreasedLine/greasedLineBaseMesh.js +4 -2
  34. package/Meshes/GreasedLine/greasedLineBaseMesh.js.map +1 -1
  35. package/Meshes/Node/Blocks/geometryDistanceBlock.d.ts +30 -0
  36. package/Meshes/Node/Blocks/geometryDistanceBlock.js +63 -0
  37. package/Meshes/Node/Blocks/geometryDistanceBlock.js.map +1 -0
  38. package/Meshes/Node/Blocks/geometryDotBlock.d.ts +30 -0
  39. package/Meshes/Node/Blocks/geometryDotBlock.js +63 -0
  40. package/Meshes/Node/Blocks/geometryDotBlock.js.map +1 -0
  41. package/Meshes/Node/Blocks/geometryLengthBlock.d.ts +26 -0
  42. package/Meshes/Node/Blocks/geometryLengthBlock.js +52 -0
  43. package/Meshes/Node/Blocks/geometryLengthBlock.js.map +1 -0
  44. package/Meshes/Node/Blocks/geometryPosterizeBlock.d.ts +31 -0
  45. package/Meshes/Node/Blocks/geometryPosterizeBlock.js +63 -0
  46. package/Meshes/Node/Blocks/geometryPosterizeBlock.js.map +1 -0
  47. package/Meshes/Node/Blocks/geometryReplaceColorBlock.d.ts +38 -0
  48. package/Meshes/Node/Blocks/geometryReplaceColorBlock.js +88 -0
  49. package/Meshes/Node/Blocks/geometryReplaceColorBlock.js.map +1 -0
  50. package/Meshes/Node/Blocks/geometryRotate2dBlock.d.ts +30 -0
  51. package/Meshes/Node/Blocks/geometryRotate2dBlock.js +59 -0
  52. package/Meshes/Node/Blocks/geometryRotate2dBlock.js.map +1 -0
  53. package/Meshes/Node/index.d.ts +6 -0
  54. package/Meshes/Node/index.js +6 -0
  55. package/Meshes/Node/index.js.map +1 -1
  56. package/Meshes/mesh.js +10 -0
  57. package/Meshes/mesh.js.map +1 -1
  58. package/Meshes/trailMesh.js +24 -19
  59. package/Meshes/trailMesh.js.map +1 -1
  60. package/Physics/v2/Plugins/havokPlugin.d.ts +0 -1
  61. package/Physics/v2/Plugins/havokPlugin.js +3 -2
  62. package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
  63. package/Physics/v2/physicsEngine.d.ts +1 -0
  64. package/Physics/v2/physicsEngine.js +1 -0
  65. package/Physics/v2/physicsEngine.js.map +1 -1
  66. package/PostProcesses/RenderPipeline/Pipelines/taaRenderingPipeline.d.ts +1 -1
  67. package/PostProcesses/RenderPipeline/Pipelines/taaRenderingPipeline.js +10 -2
  68. package/PostProcesses/RenderPipeline/Pipelines/taaRenderingPipeline.js.map +1 -1
  69. package/XR/features/Layers/WebXRCompositionLayer.d.ts +48 -0
  70. package/XR/features/Layers/WebXRCompositionLayer.js +94 -0
  71. package/XR/features/Layers/WebXRCompositionLayer.js.map +1 -0
  72. package/XR/features/Layers/WebXRProjectionLayer.d.ts +10 -0
  73. package/XR/features/Layers/WebXRProjectionLayer.js +51 -0
  74. package/XR/features/Layers/WebXRProjectionLayer.js.map +1 -0
  75. package/XR/features/WebXRControllerPointerSelection.js +4 -1
  76. package/XR/features/WebXRControllerPointerSelection.js.map +1 -1
  77. package/XR/features/WebXRControllerTeleportation.js +11 -10
  78. package/XR/features/WebXRControllerTeleportation.js.map +1 -1
  79. package/XR/features/WebXRHandTracking.d.ts +7 -1
  80. package/XR/features/WebXRHandTracking.js +28 -26
  81. package/XR/features/WebXRHandTracking.js.map +1 -1
  82. package/XR/features/WebXRLayers.d.ts +44 -26
  83. package/XR/features/WebXRLayers.js +204 -153
  84. package/XR/features/WebXRLayers.js.map +1 -1
  85. package/XR/features/WebXRNearInteraction.js +16 -1
  86. package/XR/features/WebXRNearInteraction.js.map +1 -1
  87. package/XR/webXRCamera.js +10 -0
  88. package/XR/webXRCamera.js.map +1 -1
  89. package/XR/webXRDefaultExperience.d.ts +9 -0
  90. package/XR/webXRDefaultExperience.js +8 -0
  91. package/XR/webXRDefaultExperience.js.map +1 -1
  92. package/XR/webXRExperienceHelper.js +1 -1
  93. package/XR/webXRExperienceHelper.js.map +1 -1
  94. package/XR/webXRFeaturesManager.js +8 -2
  95. package/XR/webXRFeaturesManager.js.map +1 -1
  96. package/XR/webXRLayerWrapper.d.ts +12 -3
  97. package/XR/webXRLayerWrapper.js +18 -2
  98. package/XR/webXRLayerWrapper.js.map +1 -1
  99. package/XR/webXRRenderTargetTextureProvider.js +0 -5
  100. package/XR/webXRRenderTargetTextureProvider.js.map +1 -1
  101. package/XR/webXRSessionManager.d.ts +9 -1
  102. package/XR/webXRSessionManager.js +24 -5
  103. package/XR/webXRSessionManager.js.map +1 -1
  104. package/package.json +1 -1
  105. package/scene.d.ts +9 -1
  106. package/scene.js +4 -4
  107. package/scene.js.map +1 -1
@@ -45,56 +45,106 @@ export interface INodeMaterialEditorOptions {
45
45
  }
46
46
  /** @internal */
47
47
  export declare class NodeMaterialDefines extends MaterialDefines implements IImageProcessingConfigurationDefines {
48
+ /** Normal */
48
49
  NORMAL: boolean;
50
+ /** Tangent */
49
51
  TANGENT: boolean;
52
+ /** Vertex color */
50
53
  VERTEXCOLOR_NME: boolean;
54
+ /** Uv1 **/
51
55
  UV1: boolean;
56
+ /** Uv2 **/
52
57
  UV2: boolean;
58
+ /** Uv3 **/
53
59
  UV3: boolean;
60
+ /** Uv4 **/
54
61
  UV4: boolean;
62
+ /** Uv5 **/
55
63
  UV5: boolean;
64
+ /** Uv6 **/
56
65
  UV6: boolean;
66
+ /** Prepass **/
57
67
  PREPASS: boolean;
68
+ /** Prepass normal */
58
69
  PREPASS_NORMAL: boolean;
70
+ /** Prepass normal index */
59
71
  PREPASS_NORMAL_INDEX: number;
72
+ /** Prepass position */
60
73
  PREPASS_POSITION: boolean;
74
+ /** Prepass position index */
61
75
  PREPASS_POSITION_INDEX: number;
76
+ /** Prepass depth */
62
77
  PREPASS_DEPTH: boolean;
78
+ /** Prepass depth index */
63
79
  PREPASS_DEPTH_INDEX: number;
80
+ /** Scene MRT count */
64
81
  SCENE_MRT_COUNT: number;
65
82
  /** BONES */
66
83
  NUM_BONE_INFLUENCERS: number;
84
+ /** Bones per mesh */
67
85
  BonesPerMesh: number;
86
+ /** Using texture for bone storage */
68
87
  BONETEXTURE: boolean;
69
88
  /** MORPH TARGETS */
70
89
  MORPHTARGETS: boolean;
90
+ /** Morph target normal */
71
91
  MORPHTARGETS_NORMAL: boolean;
92
+ /** Morph target tangent */
72
93
  MORPHTARGETS_TANGENT: boolean;
94
+ /** Morph target uv */
73
95
  MORPHTARGETS_UV: boolean;
96
+ /** Number of morph influencers */
74
97
  NUM_MORPH_INFLUENCERS: number;
98
+ /** Using a texture to store morph target data */
75
99
  MORPHTARGETS_TEXTURE: boolean;
76
100
  /** IMAGE PROCESSING */
77
101
  IMAGEPROCESSING: boolean;
102
+ /** Vignette */
78
103
  VIGNETTE: boolean;
104
+ /** Multiply blend mode for vignette */
79
105
  VIGNETTEBLENDMODEMULTIPLY: boolean;
106
+ /** Opaque blend mode for vignette */
80
107
  VIGNETTEBLENDMODEOPAQUE: boolean;
108
+ /** Tone mapping */
81
109
  TONEMAPPING: boolean;
110
+ /** ACES tone mapping mode */
82
111
  TONEMAPPING_ACES: boolean;
112
+ /** Contrast */
83
113
  CONTRAST: boolean;
114
+ /** Exposure */
84
115
  EXPOSURE: boolean;
116
+ /** Color curves */
85
117
  COLORCURVES: boolean;
118
+ /** Color grading */
86
119
  COLORGRADING: boolean;
120
+ /** 3D color grading */
87
121
  COLORGRADING3D: boolean;
122
+ /** Sampler green depth */
88
123
  SAMPLER3DGREENDEPTH: boolean;
124
+ /** Sampler for BGR map */
89
125
  SAMPLER3DBGRMAP: boolean;
126
+ /** Dithering */
90
127
  DITHER: boolean;
128
+ /** Using post process for image processing */
91
129
  IMAGEPROCESSINGPOSTPROCESS: boolean;
130
+ /** Skip color clamp */
92
131
  SKIPFINALCOLORCLAMP: boolean;
93
132
  /** MISC. */
94
133
  BUMPDIRECTUV: number;
134
+ /** Camera is orthographic */
95
135
  CAMERA_ORTHOGRAPHIC: boolean;
136
+ /** Camera is perspective */
96
137
  CAMERA_PERSPECTIVE: boolean;
138
+ /**
139
+ * Creates a new NodeMaterialDefines
140
+ */
97
141
  constructor();
142
+ /**
143
+ * Set the value of a specific key
144
+ * @param name defines the name of the key to set
145
+ * @param value defines the value to set
146
+ * @param markAsUnprocessedIfDirty Flag to indicate to the cache that this value needs processing
147
+ */
98
148
  setValue(name: string, value: any, markAsUnprocessedIfDirty?: boolean): void;
99
149
  }
100
150
  /**
@@ -44,59 +44,109 @@ import { Logger } from "../../Misc/logger.js";
44
44
  const onCreatedEffectParameters = { effect: null, subMesh: null };
45
45
  /** @internal */
46
46
  export class NodeMaterialDefines extends MaterialDefines {
47
+ /**
48
+ * Creates a new NodeMaterialDefines
49
+ */
47
50
  constructor() {
48
51
  super();
52
+ /** Normal */
49
53
  this.NORMAL = false;
54
+ /** Tangent */
50
55
  this.TANGENT = false;
56
+ /** Vertex color */
51
57
  this.VERTEXCOLOR_NME = false;
58
+ /** Uv1 **/
52
59
  this.UV1 = false;
60
+ /** Uv2 **/
53
61
  this.UV2 = false;
62
+ /** Uv3 **/
54
63
  this.UV3 = false;
64
+ /** Uv4 **/
55
65
  this.UV4 = false;
66
+ /** Uv5 **/
56
67
  this.UV5 = false;
68
+ /** Uv6 **/
57
69
  this.UV6 = false;
70
+ /** Prepass **/
58
71
  this.PREPASS = false;
72
+ /** Prepass normal */
59
73
  this.PREPASS_NORMAL = false;
74
+ /** Prepass normal index */
60
75
  this.PREPASS_NORMAL_INDEX = -1;
76
+ /** Prepass position */
61
77
  this.PREPASS_POSITION = false;
78
+ /** Prepass position index */
62
79
  this.PREPASS_POSITION_INDEX = -1;
80
+ /** Prepass depth */
63
81
  this.PREPASS_DEPTH = false;
82
+ /** Prepass depth index */
64
83
  this.PREPASS_DEPTH_INDEX = -1;
84
+ /** Scene MRT count */
65
85
  this.SCENE_MRT_COUNT = 0;
66
86
  /** BONES */
67
87
  this.NUM_BONE_INFLUENCERS = 0;
88
+ /** Bones per mesh */
68
89
  this.BonesPerMesh = 0;
90
+ /** Using texture for bone storage */
69
91
  this.BONETEXTURE = false;
70
92
  /** MORPH TARGETS */
71
93
  this.MORPHTARGETS = false;
94
+ /** Morph target normal */
72
95
  this.MORPHTARGETS_NORMAL = false;
96
+ /** Morph target tangent */
73
97
  this.MORPHTARGETS_TANGENT = false;
98
+ /** Morph target uv */
74
99
  this.MORPHTARGETS_UV = false;
100
+ /** Number of morph influencers */
75
101
  this.NUM_MORPH_INFLUENCERS = 0;
102
+ /** Using a texture to store morph target data */
76
103
  this.MORPHTARGETS_TEXTURE = false;
77
104
  /** IMAGE PROCESSING */
78
105
  this.IMAGEPROCESSING = false;
106
+ /** Vignette */
79
107
  this.VIGNETTE = false;
108
+ /** Multiply blend mode for vignette */
80
109
  this.VIGNETTEBLENDMODEMULTIPLY = false;
110
+ /** Opaque blend mode for vignette */
81
111
  this.VIGNETTEBLENDMODEOPAQUE = false;
112
+ /** Tone mapping */
82
113
  this.TONEMAPPING = false;
114
+ /** ACES tone mapping mode */
83
115
  this.TONEMAPPING_ACES = false;
116
+ /** Contrast */
84
117
  this.CONTRAST = false;
118
+ /** Exposure */
85
119
  this.EXPOSURE = false;
120
+ /** Color curves */
86
121
  this.COLORCURVES = false;
122
+ /** Color grading */
87
123
  this.COLORGRADING = false;
124
+ /** 3D color grading */
88
125
  this.COLORGRADING3D = false;
126
+ /** Sampler green depth */
89
127
  this.SAMPLER3DGREENDEPTH = false;
128
+ /** Sampler for BGR map */
90
129
  this.SAMPLER3DBGRMAP = false;
130
+ /** Dithering */
91
131
  this.DITHER = false;
132
+ /** Using post process for image processing */
92
133
  this.IMAGEPROCESSINGPOSTPROCESS = false;
134
+ /** Skip color clamp */
93
135
  this.SKIPFINALCOLORCLAMP = false;
94
136
  /** MISC. */
95
137
  this.BUMPDIRECTUV = 0;
138
+ /** Camera is orthographic */
96
139
  this.CAMERA_ORTHOGRAPHIC = false;
140
+ /** Camera is perspective */
97
141
  this.CAMERA_PERSPECTIVE = false;
98
142
  this.rebuild();
99
143
  }
144
+ /**
145
+ * Set the value of a specific key
146
+ * @param name defines the name of the key to set
147
+ * @param value defines the value to set
148
+ * @param markAsUnprocessedIfDirty Flag to indicate to the cache that this value needs processing
149
+ */
100
150
  setValue(name, value, markAsUnprocessedIfDirty = false) {
101
151
  if (this[name] === undefined) {
102
152
  this._keys.push(name);