@babylonjs/core 5.33.1 → 5.33.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.
- package/Collisions/pickingInfo.js +18 -8
- package/Collisions/pickingInfo.js.map +1 -1
- package/Engines/thinEngine.js +2 -2
- package/Engines/thinEngine.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.d.ts +4 -0
- package/Materials/PBR/pbrBaseMaterial.js +11 -7
- package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
- package/package.json +1 -1
|
@@ -788,6 +788,8 @@ export declare abstract class PBRBaseMaterial extends PushMaterial {
|
|
|
788
788
|
bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void;
|
|
789
789
|
/**
|
|
790
790
|
* Returns the animatable textures.
|
|
791
|
+
* If material have animatable metallic texture, then reflectivity texture will not be returned, even if it has animations.
|
|
792
|
+
* The metallic reflectance, reflectance, micro surface and refraction texture will not be returned either.
|
|
791
793
|
* @returns - Array of animatable textures.
|
|
792
794
|
*/
|
|
793
795
|
getAnimatables(): IAnimatable[];
|
|
@@ -809,6 +811,8 @@ export declare abstract class PBRBaseMaterial extends PushMaterial {
|
|
|
809
811
|
hasTexture(texture: BaseTexture): boolean;
|
|
810
812
|
/**
|
|
811
813
|
* Sets the required values to the prepass renderer.
|
|
814
|
+
* It can't be sets when subsurface scattering of this material is disabled.
|
|
815
|
+
* When scene have ability to enable subsurface prepass effect, it will enable.
|
|
812
816
|
*/
|
|
813
817
|
setPrePassRenderer(): boolean;
|
|
814
818
|
/**
|
|
@@ -1868,6 +1868,8 @@ export class PBRBaseMaterial extends PushMaterial {
|
|
|
1868
1868
|
}
|
|
1869
1869
|
/**
|
|
1870
1870
|
* Returns the animatable textures.
|
|
1871
|
+
* If material have animatable metallic texture, then reflectivity texture will not be returned, even if it has animations.
|
|
1872
|
+
* The metallic reflectance, reflectance, micro surface and refraction texture will not be returned either.
|
|
1871
1873
|
* @returns - Array of animatable textures.
|
|
1872
1874
|
*/
|
|
1873
1875
|
getAnimatables() {
|
|
@@ -2004,17 +2006,19 @@ export class PBRBaseMaterial extends PushMaterial {
|
|
|
2004
2006
|
}
|
|
2005
2007
|
/**
|
|
2006
2008
|
* Sets the required values to the prepass renderer.
|
|
2009
|
+
* It can't be sets when subsurface scattering of this material is disabled.
|
|
2010
|
+
* When scene have ability to enable subsurface prepass effect, it will enable.
|
|
2007
2011
|
*/
|
|
2008
2012
|
setPrePassRenderer() {
|
|
2009
2013
|
var _a;
|
|
2010
|
-
if ((_a = this.subSurface) === null || _a === void 0 ? void 0 : _a.isScatteringEnabled) {
|
|
2011
|
-
|
|
2012
|
-
if (subSurfaceConfiguration) {
|
|
2013
|
-
subSurfaceConfiguration.enabled = true;
|
|
2014
|
-
}
|
|
2015
|
-
return true;
|
|
2014
|
+
if (!((_a = this.subSurface) === null || _a === void 0 ? void 0 : _a.isScatteringEnabled)) {
|
|
2015
|
+
return false;
|
|
2016
2016
|
}
|
|
2017
|
-
|
|
2017
|
+
const subSurfaceConfiguration = this.getScene().enableSubSurfaceForPrePass();
|
|
2018
|
+
if (subSurfaceConfiguration) {
|
|
2019
|
+
subSurfaceConfiguration.enabled = true;
|
|
2020
|
+
}
|
|
2021
|
+
return true;
|
|
2018
2022
|
}
|
|
2019
2023
|
/**
|
|
2020
2024
|
* Disposes the resources of the material.
|