@onerjs/core 8.27.11 → 8.27.13
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/Engines/abstractEngine.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/screenSpaceCurvaturePostProcessBlock.d.ts +39 -0
- package/FrameGraph/Node/Blocks/PostProcesses/screenSpaceCurvaturePostProcessBlock.js +86 -0
- package/FrameGraph/Node/Blocks/PostProcesses/screenSpaceCurvaturePostProcessBlock.js.map +1 -0
- package/FrameGraph/Node/Blocks/PostProcesses/sharpenPostProcessBlock.d.ts +34 -0
- package/FrameGraph/Node/Blocks/PostProcesses/sharpenPostProcessBlock.js +74 -0
- package/FrameGraph/Node/Blocks/PostProcesses/sharpenPostProcessBlock.js.map +1 -0
- package/FrameGraph/Node/Blocks/index.d.ts +2 -0
- package/FrameGraph/Node/Blocks/index.js +2 -0
- package/FrameGraph/Node/Blocks/index.js.map +1 -1
- package/FrameGraph/Tasks/PostProcesses/customPostProcessTask.d.ts +21 -0
- package/FrameGraph/Tasks/PostProcesses/customPostProcessTask.js +18 -0
- package/FrameGraph/Tasks/PostProcesses/customPostProcessTask.js.map +1 -0
- package/FrameGraph/Tasks/PostProcesses/screenSpaceCurvatureTask.d.ts +22 -0
- package/FrameGraph/Tasks/PostProcesses/screenSpaceCurvatureTask.js +27 -0
- package/FrameGraph/Tasks/PostProcesses/screenSpaceCurvatureTask.js.map +1 -0
- package/FrameGraph/Tasks/PostProcesses/sharpenTask.d.ts +17 -0
- package/FrameGraph/Tasks/PostProcesses/sharpenTask.js +23 -0
- package/FrameGraph/Tasks/PostProcesses/sharpenTask.js.map +1 -0
- package/FrameGraph/frameGraphTextureManager.d.ts +6 -2
- package/FrameGraph/frameGraphTextureManager.js +22 -8
- package/FrameGraph/frameGraphTextureManager.js.map +1 -1
- package/FrameGraph/index.d.ts +3 -0
- package/FrameGraph/index.js +3 -0
- package/FrameGraph/index.js.map +1 -1
- package/Materials/PBR/openPbrMaterial.d.ts +39 -0
- package/Materials/PBR/openPbrMaterial.js +47 -0
- package/Materials/PBR/openPbrMaterial.js.map +1 -1
- package/Materials/materialHelper.functions.d.ts +1 -7
- package/Materials/materialHelper.functions.js +2 -15
- package/Materials/materialHelper.functions.js.map +1 -1
- package/Materials/materialHelper.functions.pure.d.ts +10 -0
- package/Materials/materialHelper.functions.pure.js +21 -0
- package/Materials/materialHelper.functions.pure.js.map +1 -0
- package/PostProcesses/index.d.ts +2 -0
- package/PostProcesses/index.js +2 -0
- package/PostProcesses/index.js.map +1 -1
- package/PostProcesses/screenSpaceCurvaturePostProcess.d.ts +6 -2
- package/PostProcesses/screenSpaceCurvaturePostProcess.js +37 -13
- package/PostProcesses/screenSpaceCurvaturePostProcess.js.map +1 -1
- package/PostProcesses/sharpenPostProcess.d.ts +6 -3
- package/PostProcesses/sharpenPostProcess.js +39 -24
- package/PostProcesses/sharpenPostProcess.js.map +1 -1
- package/PostProcesses/thinCustomPostProcess.d.ts +20 -0
- package/PostProcesses/thinCustomPostProcess.js +32 -0
- package/PostProcesses/thinCustomPostProcess.js.map +1 -0
- package/PostProcesses/thinScreenSpaceCurvaturePostProcess.d.ts +36 -0
- package/PostProcesses/thinScreenSpaceCurvaturePostProcess.js +61 -0
- package/PostProcesses/thinScreenSpaceCurvaturePostProcess.js.map +1 -0
- package/PostProcesses/thinSharpenPostProcess.d.ts +40 -0
- package/PostProcesses/thinSharpenPostProcess.js +64 -0
- package/PostProcesses/thinSharpenPostProcess.js.map +1 -0
- package/Rendering/objectRenderer.js +3 -1
- package/Rendering/objectRenderer.js.map +1 -1
- package/Shaders/ShadersInclude/openpbrDielectricReflectance.js +8 -9
- package/Shaders/ShadersInclude/openpbrDielectricReflectance.js.map +1 -1
- package/Shaders/ShadersInclude/openpbrDirectLighting.js +13 -6
- package/Shaders/ShadersInclude/openpbrDirectLighting.js.map +1 -1
- package/Shaders/ShadersInclude/openpbrEnvironmentLighting.js +10 -2
- package/Shaders/ShadersInclude/openpbrEnvironmentLighting.js.map +1 -1
- package/Shaders/ShadersInclude/openpbrFragmentDeclaration.js +7 -1
- package/Shaders/ShadersInclude/openpbrFragmentDeclaration.js.map +1 -1
- package/Shaders/ShadersInclude/openpbrFragmentSamplersDeclaration.js +2 -0
- package/Shaders/ShadersInclude/openpbrFragmentSamplersDeclaration.js.map +1 -1
- package/Shaders/ShadersInclude/openpbrThinFilmLayerData.d.ts +5 -0
- package/Shaders/ShadersInclude/openpbrThinFilmLayerData.js +27 -0
- package/Shaders/ShadersInclude/openpbrThinFilmLayerData.js.map +1 -0
- package/Shaders/ShadersInclude/openpbrUboDeclaration.js +1 -1
- package/Shaders/ShadersInclude/openpbrUboDeclaration.js.map +1 -1
- package/Shaders/ShadersInclude/openpbrVertexDeclaration.js +6 -0
- package/Shaders/ShadersInclude/openpbrVertexDeclaration.js.map +1 -1
- package/Shaders/openpbr.fragment.d.ts +1 -0
- package/Shaders/openpbr.fragment.js +7 -1
- package/Shaders/openpbr.fragment.js.map +1 -1
- package/Shaders/openpbr.vertex.js +4 -0
- package/Shaders/openpbr.vertex.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/openpbrBaseLayerData.js +2 -2
- package/ShadersWGSL/ShadersInclude/openpbrBaseLayerData.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/openpbrDirectLighting.js +13 -6
- package/ShadersWGSL/ShadersInclude/openpbrDirectLighting.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/openpbrEnvironmentLighting.js +10 -2
- package/ShadersWGSL/ShadersInclude/openpbrEnvironmentLighting.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/openpbrFragmentSamplersDeclaration.js +2 -0
- package/ShadersWGSL/ShadersInclude/openpbrFragmentSamplersDeclaration.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/openpbrThinFilmLayerData.d.ts +5 -0
- package/ShadersWGSL/ShadersInclude/openpbrThinFilmLayerData.js +27 -0
- package/ShadersWGSL/ShadersInclude/openpbrThinFilmLayerData.js.map +1 -0
- package/ShadersWGSL/ShadersInclude/openpbrUboDeclaration.js +1 -1
- package/ShadersWGSL/ShadersInclude/openpbrUboDeclaration.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/pbrDirectLightingFunctions.js +3 -3
- package/ShadersWGSL/ShadersInclude/pbrDirectLightingFunctions.js.map +1 -1
- package/ShadersWGSL/openpbr.fragment.d.ts +1 -0
- package/ShadersWGSL/openpbr.fragment.js +7 -1
- package/ShadersWGSL/openpbr.fragment.js.map +1 -1
- package/ShadersWGSL/openpbr.vertex.js +4 -0
- package/ShadersWGSL/openpbr.vertex.js.map +1 -1
- package/ShadersWGSL/screenSpaceCurvature.fragment.d.ts +5 -0
- package/ShadersWGSL/screenSpaceCurvature.fragment.js +25 -0
- package/ShadersWGSL/screenSpaceCurvature.fragment.js.map +1 -0
- package/Sprites/spriteRenderer.js +1 -1
- package/Sprites/spriteRenderer.js.map +1 -1
- package/XR/motionController/index.d.ts +1 -0
- package/XR/motionController/index.js +1 -0
- package/XR/motionController/index.js.map +1 -1
- package/XR/motionController/webXRMotionControllerManager.js +1 -0
- package/XR/motionController/webXRMotionControllerManager.js.map +1 -1
- package/XR/motionController/webXROculusHandController.d.ts +25 -0
- package/XR/motionController/webXROculusHandController.js +246 -0
- package/XR/motionController/webXROculusHandController.js.map +1 -0
- package/package.json +1 -1
|
@@ -178,6 +178,7 @@ export class OpenPBRMaterialDefines extends ImageProcessingDefinesMixin(OpenPBRM
|
|
|
178
178
|
this.SPECULAR_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE = false;
|
|
179
179
|
this.COAT_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE = false;
|
|
180
180
|
this.USE_GLTF_STYLE_ANISOTROPY = false;
|
|
181
|
+
this.THIN_FILM_THICKNESS_FROM_THIN_FILM_TEXTURE = false;
|
|
181
182
|
this.ENVIRONMENTBRDF = false;
|
|
182
183
|
this.ENVIRONMENTBRDF_RGBD = false;
|
|
183
184
|
this.NORMAL = false;
|
|
@@ -191,6 +192,8 @@ export class OpenPBRMaterialDefines extends ImageProcessingDefinesMixin(OpenPBRM
|
|
|
191
192
|
this.ANISOTROPIC_OPENPBR = true; // Tells the shader to use OpenPBR's anisotropic roughness remapping
|
|
192
193
|
this.ANISOTROPIC_BASE = false; // Tells the shader to apply anisotropy to the base layer
|
|
193
194
|
this.ANISOTROPIC_COAT = false; // Tells the shader to apply anisotropy to the coat layer
|
|
195
|
+
this.THIN_FILM = false; // Enables thin film layer
|
|
196
|
+
this.IRIDESCENCE = false; // Enables iridescence layer
|
|
194
197
|
this.REFLECTION = false;
|
|
195
198
|
this.REFLECTIONMAP_3D = false;
|
|
196
199
|
this.REFLECTIONMAP_SPHERICAL = false;
|
|
@@ -491,6 +494,12 @@ export class OpenPBRMaterial extends OpenPBRMaterialBase {
|
|
|
491
494
|
this._emissionLuminance = new Property("emission_luminance", 1.0, "vLightingIntensity", 4, 1);
|
|
492
495
|
this._emissionColor = new Property("emission_color", Color3.Black(), "vEmissionColor", 3);
|
|
493
496
|
this._emissionColorTexture = new Sampler("emission_color", "emissionColor", "EMISSION_COLOR");
|
|
497
|
+
this._thinFilmWeight = new Property("thin_film_weight", 0.0, "vThinFilmWeight", 1, 0);
|
|
498
|
+
this._thinFilmWeightTexture = new Sampler("thin_film_weight", "thinFilmWeight", "THIN_FILM_WEIGHT");
|
|
499
|
+
this._thinFilmThickness = new Property("thin_film_thickness", 0.5, "vThinFilmThickness", 2, 0);
|
|
500
|
+
this._thinFilmThicknessMin = new Property("thin_film_thickness_min", 0.0, "vThinFilmThickness", 2, 1);
|
|
501
|
+
this._thinFilmThicknessTexture = new Sampler("thin_film_thickness", "thinFilmThickness", "THIN_FILM_THICKNESS");
|
|
502
|
+
this._thinFilmIor = new Property("thin_film_ior", 1.4, "vThinFilmIor", 1, 0);
|
|
494
503
|
this._ambientOcclusionTexture = new Sampler("ambient_occlusion", "ambientOcclusion", "AMBIENT_OCCLUSION");
|
|
495
504
|
this._uniformsList = {};
|
|
496
505
|
this._samplersList = {};
|
|
@@ -687,6 +696,10 @@ export class OpenPBRMaterial extends OpenPBRMaterialBase {
|
|
|
687
696
|
* @internal
|
|
688
697
|
*/
|
|
689
698
|
this._useMetallicFromMetallicTextureBlue = false;
|
|
699
|
+
/**
|
|
700
|
+
* Specifies if the thin film thickness is stored in the green channel of the thin film thickness texture.
|
|
701
|
+
*/
|
|
702
|
+
this._useThinFilmThicknessFromTextureGreen = false;
|
|
690
703
|
/**
|
|
691
704
|
* Defines the falloff type used in this material.
|
|
692
705
|
* It by default is Physical.
|
|
@@ -922,6 +935,12 @@ export class OpenPBRMaterial extends OpenPBRMaterialBase {
|
|
|
922
935
|
this._geometryCoatTangentTexture;
|
|
923
936
|
this._geometryOpacity;
|
|
924
937
|
this._geometryOpacityTexture;
|
|
938
|
+
this._thinFilmWeight;
|
|
939
|
+
this._thinFilmWeightTexture;
|
|
940
|
+
this._thinFilmThickness;
|
|
941
|
+
this._thinFilmThicknessMin;
|
|
942
|
+
this._thinFilmThicknessTexture;
|
|
943
|
+
this._thinFilmIor;
|
|
925
944
|
this._emissionLuminance;
|
|
926
945
|
this._emissionColor;
|
|
927
946
|
this._emissionColorTexture;
|
|
@@ -1702,6 +1721,7 @@ export class OpenPBRMaterial extends OpenPBRMaterialBase {
|
|
|
1702
1721
|
defines.COAT_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE = this._useCoatRoughnessAnisotropyFromTangentTexture;
|
|
1703
1722
|
defines.ROUGHNESSSTOREINMETALMAPGREEN = this._useRoughnessFromMetallicTextureGreen;
|
|
1704
1723
|
defines.METALLNESSSTOREINMETALMAPBLUE = this._useMetallicFromMetallicTextureBlue;
|
|
1724
|
+
defines.THIN_FILM_THICKNESS_FROM_THIN_FILM_TEXTURE = this._useThinFilmThicknessFromTextureGreen;
|
|
1705
1725
|
if (this.geometryNormalTexture) {
|
|
1706
1726
|
if (this._useParallax && this.baseColorTexture && MaterialFlags.DiffuseTextureEnabled) {
|
|
1707
1727
|
defines.PARALLAX = true;
|
|
@@ -1790,6 +1810,8 @@ export class OpenPBRMaterial extends OpenPBRMaterialBase {
|
|
|
1790
1810
|
defines.ANISOTROPIC_BASE = false;
|
|
1791
1811
|
defines.ANISOTROPIC_COAT = false;
|
|
1792
1812
|
}
|
|
1813
|
+
defines.THIN_FILM = this.thinFilmWeight > 0.0;
|
|
1814
|
+
defines.IRIDESCENCE = this.thinFilmWeight > 0.0;
|
|
1793
1815
|
// Misc.
|
|
1794
1816
|
if (defines._areMiscDirty) {
|
|
1795
1817
|
PrepareDefinesForMisc(mesh, scene, this._useLogarithmicDepth, this.pointsCloud, this.fogEnabled, this.needAlphaTestingForMesh(mesh), defines, this._applyDecalMapAfterDetailMap, this._useVertexPulling, renderingMesh, this._setVertexOutputInvariant);
|
|
@@ -2090,6 +2112,30 @@ __decorate([
|
|
|
2090
2112
|
addAccessorsForMaterialProperty("_markAllSubMeshesAsTexturesDirty", "emissionColorTexture")
|
|
2091
2113
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2092
2114
|
], OpenPBRMaterial.prototype, "_emissionColorTexture", void 0);
|
|
2115
|
+
__decorate([
|
|
2116
|
+
addAccessorsForMaterialProperty("_markAllSubMeshesAsTexturesDirty", "thinFilmWeight")
|
|
2117
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2118
|
+
], OpenPBRMaterial.prototype, "_thinFilmWeight", void 0);
|
|
2119
|
+
__decorate([
|
|
2120
|
+
addAccessorsForMaterialProperty("_markAllSubMeshesAsTexturesDirty", "thinFilmWeightTexture")
|
|
2121
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2122
|
+
], OpenPBRMaterial.prototype, "_thinFilmWeightTexture", void 0);
|
|
2123
|
+
__decorate([
|
|
2124
|
+
addAccessorsForMaterialProperty("_markAllSubMeshesAsTexturesDirty", "thinFilmThickness")
|
|
2125
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2126
|
+
], OpenPBRMaterial.prototype, "_thinFilmThickness", void 0);
|
|
2127
|
+
__decorate([
|
|
2128
|
+
addAccessorsForMaterialProperty("_markAllSubMeshesAsTexturesDirty", "thinFilmThicknessMin")
|
|
2129
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2130
|
+
], OpenPBRMaterial.prototype, "_thinFilmThicknessMin", void 0);
|
|
2131
|
+
__decorate([
|
|
2132
|
+
addAccessorsForMaterialProperty("_markAllSubMeshesAsTexturesDirty", "thinFilmThicknessTexture")
|
|
2133
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2134
|
+
], OpenPBRMaterial.prototype, "_thinFilmThicknessTexture", void 0);
|
|
2135
|
+
__decorate([
|
|
2136
|
+
addAccessorsForMaterialProperty("_markAllSubMeshesAsTexturesDirty", "thinFilmIor")
|
|
2137
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2138
|
+
], OpenPBRMaterial.prototype, "_thinFilmIor", void 0);
|
|
2093
2139
|
__decorate([
|
|
2094
2140
|
serializeAsTexture()
|
|
2095
2141
|
], OpenPBRMaterial.prototype, "ambientOcclusionTexture", void 0);
|
|
@@ -2180,6 +2226,7 @@ __decorate([
|
|
|
2180
2226
|
expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
2181
2227
|
], OpenPBRMaterial.prototype, "useLinearAlphaFresnel", void 0);
|
|
2182
2228
|
__decorate([
|
|
2229
|
+
serializeAsTexture(),
|
|
2183
2230
|
expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
2184
2231
|
], OpenPBRMaterial.prototype, "environmentBRDFTexture", void 0);
|
|
2185
2232
|
__decorate([
|