@babylonjs/core 6.11.0 → 6.11.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/Culling/ray.js +2 -2
- package/Culling/ray.js.map +1 -1
- package/Engines/thinEngine.js +2 -2
- package/Engines/thinEngine.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.d.ts +5 -0
- package/Materials/PBR/pbrBaseMaterial.js +6 -1
- package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
- package/Materials/PBR/pbrMaterial.d.ts +4 -0
- package/Materials/PBR/pbrMaterial.js +8 -0
- package/Materials/PBR/pbrMaterial.js.map +1 -1
- package/Materials/greasedLinePluginMaterial.d.ts +129 -41
- package/Materials/greasedLinePluginMaterial.js +190 -114
- package/Materials/greasedLinePluginMaterial.js.map +1 -1
- package/Materials/materialHelper.d.ts +2 -1
- package/Materials/materialHelper.js +3 -1
- package/Materials/materialHelper.js.map +1 -1
- package/Materials/standardMaterial.d.ts +6 -0
- package/Materials/standardMaterial.js +9 -1
- package/Materials/standardMaterial.js.map +1 -1
- package/Meshes/Builders/greasedLineBuilder.d.ts +45 -1
- package/Meshes/Builders/greasedLineBuilder.js +59 -20
- package/Meshes/Builders/greasedLineBuilder.js.map +1 -1
- package/Meshes/greasedLineMesh.d.ts +24 -11
- package/Meshes/greasedLineMesh.js +64 -24
- package/Meshes/greasedLineMesh.js.map +1 -1
- package/Misc/greasedLineTools.d.ts +11 -2
- package/Misc/greasedLineTools.js +18 -5
- package/Misc/greasedLineTools.js.map +1 -1
- package/Particles/gpuParticleSystem.js +1 -1
- package/Particles/gpuParticleSystem.js.map +1 -1
- package/Shaders/ShadersInclude/pbrBlockAlbedoOpacity.js +5 -0
- package/Shaders/ShadersInclude/pbrBlockAlbedoOpacity.js.map +1 -1
- package/Shaders/default.fragment.js +4 -1
- package/Shaders/default.fragment.js.map +1 -1
- package/package.json +2 -2
|
@@ -169,6 +169,7 @@ export declare class StandardMaterialDefines extends MaterialDefines implements
|
|
|
169
169
|
*/
|
|
170
170
|
IS_REFRACTION_LINEAR: boolean;
|
|
171
171
|
EXPOSURE: boolean;
|
|
172
|
+
DECAL_AFTER_DETAIL: boolean;
|
|
172
173
|
/**
|
|
173
174
|
* Initializes the Standard Material defines.
|
|
174
175
|
* @param externalProperties The external properties
|
|
@@ -407,6 +408,11 @@ export declare class StandardMaterial extends PushMaterial {
|
|
|
407
408
|
* If sets to true and backfaceCulling is false, normals will be flipped on the backside.
|
|
408
409
|
*/
|
|
409
410
|
twoSidedLighting: boolean;
|
|
411
|
+
private _applyDecalMapAfterDetailMap;
|
|
412
|
+
/**
|
|
413
|
+
* If sets to true, the decal map will be applied after the detail map. Else, it is applied before (default: false)
|
|
414
|
+
*/
|
|
415
|
+
applyDecalMapAfterDetailMap: boolean;
|
|
410
416
|
/**
|
|
411
417
|
* Default configuration related to image processing available in the standard Material.
|
|
412
418
|
*/
|
|
@@ -179,6 +179,7 @@ export class StandardMaterialDefines extends MaterialDefines {
|
|
|
179
179
|
*/
|
|
180
180
|
this.IS_REFRACTION_LINEAR = false;
|
|
181
181
|
this.EXPOSURE = false;
|
|
182
|
+
this.DECAL_AFTER_DETAIL = false;
|
|
182
183
|
this.rebuild();
|
|
183
184
|
}
|
|
184
185
|
setReflectionMode(modeToEnable) {
|
|
@@ -432,6 +433,7 @@ export class StandardMaterial extends PushMaterial {
|
|
|
432
433
|
this._invertNormalMapX = false;
|
|
433
434
|
this._invertNormalMapY = false;
|
|
434
435
|
this._twoSidedLighting = false;
|
|
436
|
+
this._applyDecalMapAfterDetailMap = false;
|
|
435
437
|
this._renderTargets = new SmartArray(16);
|
|
436
438
|
this._worldViewProjectionMatrix = Matrix.Zero();
|
|
437
439
|
this._globalAmbientColor = new Color3(0, 0, 0);
|
|
@@ -792,7 +794,7 @@ export class StandardMaterial extends PushMaterial {
|
|
|
792
794
|
}
|
|
793
795
|
}
|
|
794
796
|
// Misc.
|
|
795
|
-
MaterialHelper.PrepareDefinesForMisc(mesh, scene, this._useLogarithmicDepth, this.pointsCloud, this.fogEnabled, this._shouldTurnAlphaTestOn(mesh) || this._forceAlphaTest, defines);
|
|
797
|
+
MaterialHelper.PrepareDefinesForMisc(mesh, scene, this._useLogarithmicDepth, this.pointsCloud, this.fogEnabled, this._shouldTurnAlphaTestOn(mesh) || this._forceAlphaTest, defines, this._applyDecalMapAfterDetailMap);
|
|
796
798
|
// Values that need to be evaluated on every frame
|
|
797
799
|
MaterialHelper.PrepareDefinesForFrameBoundValues(scene, engine, this, defines, useInstances, null, subMesh.getRenderingMesh().hasThinInstances);
|
|
798
800
|
// External config
|
|
@@ -1784,6 +1786,12 @@ __decorate([
|
|
|
1784
1786
|
__decorate([
|
|
1785
1787
|
expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
1786
1788
|
], StandardMaterial.prototype, "twoSidedLighting", void 0);
|
|
1789
|
+
__decorate([
|
|
1790
|
+
serialize("applyDecalMapAfterDetailMap")
|
|
1791
|
+
], StandardMaterial.prototype, "_applyDecalMapAfterDetailMap", void 0);
|
|
1792
|
+
__decorate([
|
|
1793
|
+
expandToProperty("_markAllSubMeshesAsMiscDirty")
|
|
1794
|
+
], StandardMaterial.prototype, "applyDecalMapAfterDetailMap", void 0);
|
|
1787
1795
|
__decorate([
|
|
1788
1796
|
serialize()
|
|
1789
1797
|
], StandardMaterial.prototype, "useLogarithmicDepth", null);
|