@babylonjs/core 6.43.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 (88) 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/Culling/ray.d.ts +12 -1
  7. package/Culling/ray.js +20 -3
  8. package/Culling/ray.js.map +1 -1
  9. package/Debug/skeletonViewer.d.ts +2 -0
  10. package/Debug/skeletonViewer.js +111 -50
  11. package/Debug/skeletonViewer.js.map +1 -1
  12. package/Engines/engine.d.ts +14 -3
  13. package/Engines/engine.js +11 -0
  14. package/Engines/engine.js.map +1 -1
  15. package/Engines/nullEngine.d.ts +2 -0
  16. package/Engines/nullEngine.js +3 -0
  17. package/Engines/nullEngine.js.map +1 -1
  18. package/Engines/thinEngine.d.ts +4 -1
  19. package/Engines/thinEngine.js +2 -2
  20. package/Engines/thinEngine.js.map +1 -1
  21. package/Inputs/scene.inputManager.js +2 -2
  22. package/Inputs/scene.inputManager.js.map +1 -1
  23. package/Materials/Node/nodeMaterial.d.ts +50 -0
  24. package/Materials/Node/nodeMaterial.js +50 -0
  25. package/Materials/Node/nodeMaterial.js.map +1 -1
  26. package/Meshes/GreasedLine/greasedLineBaseMesh.d.ts +3 -1
  27. package/Meshes/GreasedLine/greasedLineBaseMesh.js +4 -2
  28. package/Meshes/GreasedLine/greasedLineBaseMesh.js.map +1 -1
  29. package/Meshes/Node/Blocks/geometryDistanceBlock.d.ts +30 -0
  30. package/Meshes/Node/Blocks/geometryDistanceBlock.js +63 -0
  31. package/Meshes/Node/Blocks/geometryDistanceBlock.js.map +1 -0
  32. package/Meshes/Node/Blocks/geometryDotBlock.d.ts +30 -0
  33. package/Meshes/Node/Blocks/geometryDotBlock.js +63 -0
  34. package/Meshes/Node/Blocks/geometryDotBlock.js.map +1 -0
  35. package/Meshes/Node/Blocks/geometryLengthBlock.d.ts +26 -0
  36. package/Meshes/Node/Blocks/geometryLengthBlock.js +52 -0
  37. package/Meshes/Node/Blocks/geometryLengthBlock.js.map +1 -0
  38. package/Meshes/Node/Blocks/geometryPosterizeBlock.d.ts +31 -0
  39. package/Meshes/Node/Blocks/geometryPosterizeBlock.js +63 -0
  40. package/Meshes/Node/Blocks/geometryPosterizeBlock.js.map +1 -0
  41. package/Meshes/Node/Blocks/geometryReplaceColorBlock.d.ts +38 -0
  42. package/Meshes/Node/Blocks/geometryReplaceColorBlock.js +88 -0
  43. package/Meshes/Node/Blocks/geometryReplaceColorBlock.js.map +1 -0
  44. package/Meshes/Node/Blocks/geometryRotate2dBlock.d.ts +30 -0
  45. package/Meshes/Node/Blocks/geometryRotate2dBlock.js +59 -0
  46. package/Meshes/Node/Blocks/geometryRotate2dBlock.js.map +1 -0
  47. package/Meshes/Node/index.d.ts +6 -0
  48. package/Meshes/Node/index.js +6 -0
  49. package/Meshes/Node/index.js.map +1 -1
  50. package/XR/features/Layers/WebXRCompositionLayer.d.ts +48 -0
  51. package/XR/features/Layers/WebXRCompositionLayer.js +94 -0
  52. package/XR/features/Layers/WebXRCompositionLayer.js.map +1 -0
  53. package/XR/features/Layers/WebXRProjectionLayer.d.ts +10 -0
  54. package/XR/features/Layers/WebXRProjectionLayer.js +51 -0
  55. package/XR/features/Layers/WebXRProjectionLayer.js.map +1 -0
  56. package/XR/features/WebXRControllerPointerSelection.js +4 -1
  57. package/XR/features/WebXRControllerPointerSelection.js.map +1 -1
  58. package/XR/features/WebXRControllerTeleportation.js +11 -10
  59. package/XR/features/WebXRControllerTeleportation.js.map +1 -1
  60. package/XR/features/WebXRHandTracking.d.ts +7 -1
  61. package/XR/features/WebXRHandTracking.js +28 -26
  62. package/XR/features/WebXRHandTracking.js.map +1 -1
  63. package/XR/features/WebXRLayers.d.ts +44 -26
  64. package/XR/features/WebXRLayers.js +204 -153
  65. package/XR/features/WebXRLayers.js.map +1 -1
  66. package/XR/features/WebXRNearInteraction.js +16 -1
  67. package/XR/features/WebXRNearInteraction.js.map +1 -1
  68. package/XR/webXRCamera.js +10 -0
  69. package/XR/webXRCamera.js.map +1 -1
  70. package/XR/webXRDefaultExperience.d.ts +9 -0
  71. package/XR/webXRDefaultExperience.js +8 -0
  72. package/XR/webXRDefaultExperience.js.map +1 -1
  73. package/XR/webXRExperienceHelper.js +1 -1
  74. package/XR/webXRExperienceHelper.js.map +1 -1
  75. package/XR/webXRFeaturesManager.js +8 -2
  76. package/XR/webXRFeaturesManager.js.map +1 -1
  77. package/XR/webXRLayerWrapper.d.ts +12 -3
  78. package/XR/webXRLayerWrapper.js +18 -2
  79. package/XR/webXRLayerWrapper.js.map +1 -1
  80. package/XR/webXRRenderTargetTextureProvider.js +0 -5
  81. package/XR/webXRRenderTargetTextureProvider.js.map +1 -1
  82. package/XR/webXRSessionManager.d.ts +9 -1
  83. package/XR/webXRSessionManager.js +24 -5
  84. package/XR/webXRSessionManager.js.map +1 -1
  85. package/package.json +1 -1
  86. package/scene.d.ts +9 -1
  87. package/scene.js +4 -4
  88. package/scene.js.map +1 -1
@@ -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);