@babylonjs/core 8.0.1 → 8.0.2

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 (63) hide show
  1. package/Audio/audioEngine.js +2 -0
  2. package/Audio/audioEngine.js.map +1 -1
  3. package/Engines/WebGPU/webgpuCacheBindGroups.js +1 -1
  4. package/Engines/WebGPU/webgpuCacheBindGroups.js.map +1 -1
  5. package/Engines/abstractEngine.js +2 -2
  6. package/Engines/abstractEngine.js.map +1 -1
  7. package/Engines/thinEngine.d.ts +1 -0
  8. package/Engines/thinEngine.js +7 -1
  9. package/Engines/thinEngine.js.map +1 -1
  10. package/FlowGraph/flowGraphCoordinator.d.ts +1 -0
  11. package/FlowGraph/flowGraphCoordinator.js +11 -4
  12. package/FlowGraph/flowGraphCoordinator.js.map +1 -1
  13. package/FrameGraph/Node/nodeRenderGraphBlock.js +1 -1
  14. package/FrameGraph/Node/nodeRenderGraphBlock.js.map +1 -1
  15. package/FrameGraph/Node/nodeRenderGraphBlockConnectionPoint.js +1 -1
  16. package/FrameGraph/Node/nodeRenderGraphBlockConnectionPoint.js.map +1 -1
  17. package/Materials/Node/Blocks/PBR/subSurfaceBlock.js +2 -1
  18. package/Materials/Node/Blocks/PBR/subSurfaceBlock.js.map +1 -1
  19. package/Materials/Node/nodeMaterialBlockConnectionPoint.js +1 -1
  20. package/Materials/Node/nodeMaterialBlockConnectionPoint.js.map +1 -1
  21. package/Materials/PBR/pbrBaseMaterial.d.ts +1 -0
  22. package/Materials/PBR/pbrBaseMaterial.js +4 -0
  23. package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
  24. package/Materials/PBR/pbrSubSurfaceConfiguration.d.ts +8 -0
  25. package/Materials/PBR/pbrSubSurfaceConfiguration.js +9 -1
  26. package/Materials/PBR/pbrSubSurfaceConfiguration.js.map +1 -1
  27. package/Materials/Textures/thinTexture.js +1 -1
  28. package/Materials/Textures/thinTexture.js.map +1 -1
  29. package/Meshes/Node/nodeGeometryBlockConnectionPoint.js +1 -1
  30. package/Meshes/Node/nodeGeometryBlockConnectionPoint.js.map +1 -1
  31. package/Meshes/instancedMesh.js +1 -0
  32. package/Meshes/instancedMesh.js.map +1 -1
  33. package/Rendering/IBLShadows/iblShadowsPluginMaterial.js +2 -2
  34. package/Rendering/IBLShadows/iblShadowsPluginMaterial.js.map +1 -1
  35. package/Rendering/objectRenderer.js +5 -1
  36. package/Rendering/objectRenderer.js.map +1 -1
  37. package/Shaders/ShadersInclude/lightFragment.js +12 -2
  38. package/Shaders/ShadersInclude/lightFragment.js.map +1 -1
  39. package/Shaders/ShadersInclude/pbrBlockDirectLighting.js +3 -0
  40. package/Shaders/ShadersInclude/pbrBlockDirectLighting.js.map +1 -1
  41. package/Shaders/ShadersInclude/pbrBlockFinalUnlitComponents.js +3 -3
  42. package/Shaders/ShadersInclude/pbrBlockFinalUnlitComponents.js.map +1 -1
  43. package/Shaders/ShadersInclude/pbrBlockNormalFinal.js +4 -0
  44. package/Shaders/ShadersInclude/pbrBlockNormalFinal.js.map +1 -1
  45. package/Shaders/ShadersInclude/pbrDirectLightingFunctions.js +5 -2
  46. package/Shaders/ShadersInclude/pbrDirectLightingFunctions.js.map +1 -1
  47. package/Shaders/iblVoxelGrid.vertex.d.ts +10 -0
  48. package/Shaders/iblVoxelGrid.vertex.js +23 -1
  49. package/Shaders/iblVoxelGrid.vertex.js.map +1 -1
  50. package/ShadersWGSL/ShadersInclude/lightFragment.js +13 -3
  51. package/ShadersWGSL/ShadersInclude/lightFragment.js.map +1 -1
  52. package/ShadersWGSL/ShadersInclude/pbrBlockDirectLighting.js +3 -0
  53. package/ShadersWGSL/ShadersInclude/pbrBlockDirectLighting.js.map +1 -1
  54. package/ShadersWGSL/ShadersInclude/pbrBlockFinalUnlitComponents.js +3 -3
  55. package/ShadersWGSL/ShadersInclude/pbrBlockFinalUnlitComponents.js.map +1 -1
  56. package/ShadersWGSL/ShadersInclude/pbrBlockNormalFinal.js +4 -0
  57. package/ShadersWGSL/ShadersInclude/pbrBlockNormalFinal.js.map +1 -1
  58. package/ShadersWGSL/ShadersInclude/pbrDirectLightingFunctions.js +5 -2
  59. package/ShadersWGSL/ShadersInclude/pbrDirectLightingFunctions.js.map +1 -1
  60. package/ShadersWGSL/iblVoxelGrid.vertex.d.ts +10 -0
  61. package/ShadersWGSL/iblVoxelGrid.vertex.js +26 -3
  62. package/ShadersWGSL/iblVoxelGrid.vertex.js.map +1 -1
  63. package/package.json +1 -1
@@ -1,3 +1,13 @@
1
+ import "./ShadersInclude/bonesDeclaration";
2
+ import "./ShadersInclude/bakedVertexAnimationDeclaration";
3
+ import "./ShadersInclude/instancesDeclaration";
4
+ import "./ShadersInclude/morphTargetsVertexGlobalDeclaration";
5
+ import "./ShadersInclude/morphTargetsVertexDeclaration";
6
+ import "./ShadersInclude/morphTargetsVertexGlobal";
7
+ import "./ShadersInclude/morphTargetsVertex";
8
+ import "./ShadersInclude/instancesVertex";
9
+ import "./ShadersInclude/bonesVertex";
10
+ import "./ShadersInclude/bakedVertexAnimation";
1
11
  /** @internal */
2
12
  export declare const iblVoxelGridVertexShaderWGSL: {
3
13
  name: string;
@@ -1,12 +1,35 @@
1
1
  // Do not edit.
2
2
  import { ShaderStore } from "../Engines/shaderStore.js";
3
+ import "./ShadersInclude/bonesDeclaration.js";
4
+ import "./ShadersInclude/bakedVertexAnimationDeclaration.js";
5
+ import "./ShadersInclude/instancesDeclaration.js";
6
+ import "./ShadersInclude/morphTargetsVertexGlobalDeclaration.js";
7
+ import "./ShadersInclude/morphTargetsVertexDeclaration.js";
8
+ import "./ShadersInclude/morphTargetsVertexGlobal.js";
9
+ import "./ShadersInclude/morphTargetsVertex.js";
10
+ import "./ShadersInclude/instancesVertex.js";
11
+ import "./ShadersInclude/bonesVertex.js";
12
+ import "./ShadersInclude/bakedVertexAnimation.js";
3
13
  const name = "iblVoxelGridVertexShader";
4
- const shader = `attribute position: vec3f;attribute normal: vec3f;varying vNormalizedPosition: vec3f;uniform world: mat4x4f;uniform invWorldScale: mat4x4f;uniform viewMatrix: mat4x4f;@vertex
5
- fn main(input : VertexInputs)->FragmentInputs {vertexOutputs.position=uniforms.viewMatrix*uniforms.invWorldScale*uniforms.world* vec4f(input.position,1.);vertexOutputs.vNormalizedPosition=vertexOutputs.position.xyz*0.5+0.5;
14
+ const shader = `attribute position: vec3f;varying vNormalizedPosition: vec3f;
15
+ #include<bonesDeclaration>
16
+ #include<bakedVertexAnimationDeclaration>
17
+ #include<instancesDeclaration>
18
+ #include<morphTargetsVertexGlobalDeclaration>
19
+ #include<morphTargetsVertexDeclaration>[0..maxSimultaneousMorphTargets]
20
+ uniform invWorldScale: mat4x4f;uniform viewMatrix: mat4x4f;@vertex
21
+ fn main(input : VertexInputs)->FragmentInputs {var positionUpdated=vertexInputs.position;
22
+ #include<morphTargetsVertexGlobal>
23
+ #include<morphTargetsVertex>[0..maxSimultaneousMorphTargets]
24
+ #include<instancesVertex>
25
+ #include<bonesVertex>
26
+ #include<bakedVertexAnimation>
27
+ let worldPos=finalWorld*vec4f(positionUpdated,1.0);vertexOutputs.position=uniforms.viewMatrix*uniforms.invWorldScale*worldPos;vertexOutputs.vNormalizedPosition=vertexOutputs.position.xyz*0.5+0.5;
6
28
  #ifdef IS_NDC_HALF_ZRANGE
7
29
  vertexOutputs.position=vec4f(vertexOutputs.position.x,vertexOutputs.position.y,vertexOutputs.position.z*0.5+0.5,vertexOutputs.position.w);
8
30
  #endif
9
- }`;
31
+ }
32
+ `;
10
33
  // Sideeffect
11
34
  if (!ShaderStore.ShadersStoreWGSL[name]) {
12
35
  ShaderStore.ShadersStoreWGSL[name] = shader;
@@ -1 +1 @@
1
- {"version":3,"file":"iblVoxelGrid.vertex.js","sourceRoot":"","sources":["../../../../dev/core/src/ShadersWGSL/iblVoxelGrid.vertex.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,IAAI,GAAG,0BAA0B,CAAC;AACxC,MAAM,MAAM,GAAG;;;;;EAKb,CAAC;AACH,aAAa;AACb,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC;IACtC,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAChD,CAAC;AACD,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC","sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../Engines/shaderStore\";\n\nconst name = \"iblVoxelGridVertexShader\";\nconst shader = `attribute position: vec3f;attribute normal: vec3f;varying vNormalizedPosition: vec3f;uniform world: mat4x4f;uniform invWorldScale: mat4x4f;uniform viewMatrix: mat4x4f;@vertex\nfn main(input : VertexInputs)->FragmentInputs {vertexOutputs.position=uniforms.viewMatrix*uniforms.invWorldScale*uniforms.world* vec4f(input.position,1.);vertexOutputs.vNormalizedPosition=vertexOutputs.position.xyz*0.5+0.5;\n#ifdef IS_NDC_HALF_ZRANGE\nvertexOutputs.position=vec4f(vertexOutputs.position.x,vertexOutputs.position.y,vertexOutputs.position.z*0.5+0.5,vertexOutputs.position.w);\n#endif\n}`;\n// Sideeffect\nif (!ShaderStore.ShadersStoreWGSL[name]) {\n ShaderStore.ShadersStoreWGSL[name] = shader;\n}\n/** @internal */\nexport const iblVoxelGridVertexShaderWGSL = { name, shader };\n"]}
1
+ {"version":3,"file":"iblVoxelGrid.vertex.js","sourceRoot":"","sources":["../../../../dev/core/src/ShadersWGSL/iblVoxelGrid.vertex.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,kDAAkD,CAAC;AAC1D,OAAO,uCAAuC,CAAC;AAC/C,OAAO,sDAAsD,CAAC;AAC9D,OAAO,gDAAgD,CAAC;AACxD,OAAO,2CAA2C,CAAC;AACnD,OAAO,qCAAqC,CAAC;AAC7C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,8BAA8B,CAAC;AACtC,OAAO,uCAAuC,CAAC;AAE/C,MAAM,IAAI,GAAG,0BAA0B,CAAC;AACxC,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;CAkBd,CAAC;AACF,aAAa;AACb,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC;IACtC,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAChD,CAAC;AACD,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC","sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../Engines/shaderStore\";\nimport \"./ShadersInclude/bonesDeclaration\";\nimport \"./ShadersInclude/bakedVertexAnimationDeclaration\";\nimport \"./ShadersInclude/instancesDeclaration\";\nimport \"./ShadersInclude/morphTargetsVertexGlobalDeclaration\";\nimport \"./ShadersInclude/morphTargetsVertexDeclaration\";\nimport \"./ShadersInclude/morphTargetsVertexGlobal\";\nimport \"./ShadersInclude/morphTargetsVertex\";\nimport \"./ShadersInclude/instancesVertex\";\nimport \"./ShadersInclude/bonesVertex\";\nimport \"./ShadersInclude/bakedVertexAnimation\";\n\nconst name = \"iblVoxelGridVertexShader\";\nconst shader = `attribute position: vec3f;varying vNormalizedPosition: vec3f;\n#include<bonesDeclaration>\n#include<bakedVertexAnimationDeclaration>\n#include<instancesDeclaration>\n#include<morphTargetsVertexGlobalDeclaration>\n#include<morphTargetsVertexDeclaration>[0..maxSimultaneousMorphTargets]\nuniform invWorldScale: mat4x4f;uniform viewMatrix: mat4x4f;@vertex\nfn main(input : VertexInputs)->FragmentInputs {var positionUpdated=vertexInputs.position;\n#include<morphTargetsVertexGlobal>\n#include<morphTargetsVertex>[0..maxSimultaneousMorphTargets]\n#include<instancesVertex>\n#include<bonesVertex>\n#include<bakedVertexAnimation>\nlet worldPos=finalWorld*vec4f(positionUpdated,1.0);vertexOutputs.position=uniforms.viewMatrix*uniforms.invWorldScale*worldPos;vertexOutputs.vNormalizedPosition=vertexOutputs.position.xyz*0.5+0.5;\n#ifdef IS_NDC_HALF_ZRANGE\nvertexOutputs.position=vec4f(vertexOutputs.position.x,vertexOutputs.position.y,vertexOutputs.position.z*0.5+0.5,vertexOutputs.position.w);\n#endif\n}\n`;\n// Sideeffect\nif (!ShaderStore.ShadersStoreWGSL[name]) {\n ShaderStore.ShadersStoreWGSL[name] = shader;\n}\n/** @internal */\nexport const iblVoxelGridVertexShaderWGSL = { name, shader };\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/core",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "types": "index.d.ts",