@babylonjs-toolkit/next 9.34.0 → 9.34.1
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.
package/lib/scenemanager.js
CHANGED
|
@@ -143,7 +143,7 @@ import { UnityScrollBar } from './unityscrollbar';
|
|
|
143
143
|
import { UnityDropdownMenu } from './unitydropdownmenu';
|
|
144
144
|
import { RectAreaLight } from '@babylonjs/core/Lights/rectAreaLight';
|
|
145
145
|
export class SceneManager {
|
|
146
|
-
static get Version() { return "9.
|
|
146
|
+
static get Version() { return "9.34.1 - R1"; }
|
|
147
147
|
static get Copyright() { return "All rights reserved (c) 2024 Mackey Kinard"; }
|
|
148
148
|
static IsPrecompilingShaders() {
|
|
149
149
|
return SceneManager.PrecompileShaders !== false;
|
|
@@ -15523,9 +15523,9 @@ export class LightingConversions {
|
|
|
15523
15523
|
}
|
|
15524
15524
|
else {
|
|
15525
15525
|
r["!varying vPositionFromLight(\\d+)_0: vec4f;varying vDepthMetric\\1_0: f32;varying vPositionFromLight\\1_1: vec4f;varying vDepthMetric\\1_1: f32;varying vPositionFromLight\\1_2: vec4f;varying vDepthMetric\\1_2: f32;varying vPositionFromLight\\1_3: vec4f;varying vDepthMetric\\1_3: f32;varying vPositionFromCamera\\1: vec4f;"] = "\n";
|
|
15526
|
-
r["!vPositionFromLight(\\d+)\\[(\\d)\\]=fragmentInputs\\.vPositionFromLight\\1_\\2;"] = "\n#if SHADOWCSMNUM_CASCADES$1>$2\nvPositionFromLight$1[$2]=uniforms.lightMatrix$1[$2]*vec4f(fragmentInputs.vPositionW,1.0);\n#endif";
|
|
15526
|
+
r["!vPositionFromLight(\\d+)\\[(\\d)\\]=fragmentInputs\\.vPositionFromLight\\1_\\2;"] = "\n#if SHADOWCSMNUM_CASCADES$1>$2\n#ifdef SHADOWCSMUBO$1\nvPositionFromLight$1[$2]=cascades$1.lightMatrix[$2]*vec4f(fragmentInputs.vPositionW,1.0);\n#else\nvPositionFromLight$1[$2]=uniforms.lightMatrix$1[$2]*vec4f(fragmentInputs.vPositionW,1.0);\n#endif\n#endif";
|
|
15527
15527
|
r["!vDepthMetric(\\d+)\\[(\\d)\\]=fragmentInputs\\.vDepthMetric\\1_\\2;"] = "\n#if SHADOWCSMNUM_CASCADES$1>$2\nvDepthMetric$1[$2]=tkCascadeDepthMetric(vPositionFromLight$1[$2].z,light$1.depthValues);\n#endif";
|
|
15528
|
-
r["!(diff(\\d+)=uniforms\\.viewFrustumZ\\2\\[i\\][+-])fragmentInputs\\.vPositionFromCamera\\2\\.z;"] = "$1tkCameraDepth;";
|
|
15528
|
+
r["!(diff(\\d+)=(?:uniforms\\.viewFrustumZ\\2|cascades\\2\\.viewFrustumZ)\\[i\\][+-])fragmentInputs\\.vPositionFromCamera\\2\\.z;"] = "$1tkCameraDepth;";
|
|
15529
15529
|
}
|
|
15530
15530
|
}
|
|
15531
15531
|
else {
|
|
@@ -131469,6 +131469,8 @@ export class CarrierGeometry {
|
|
|
131469
131469
|
return out;
|
|
131470
131470
|
}
|
|
131471
131471
|
static ApplyGeometry(mesh, positions, unityUvs, colors, indices, updatable) {
|
|
131472
|
+
if (positions.length === 0 && mesh.subMeshes == null)
|
|
131473
|
+
return;
|
|
131472
131474
|
const data = new VertexData();
|
|
131473
131475
|
data.positions = positions;
|
|
131474
131476
|
data.uvs = CarrierGeometry.FlipUvs(unityUvs.slice());
|