@onerjs/core 8.26.5 → 8.26.7
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/Materials/Node/Blocks/Dual/currentScreenBlock.d.ts +3 -1
- package/Materials/Node/Blocks/Dual/currentScreenBlock.js +15 -6
- package/Materials/Node/Blocks/Dual/currentScreenBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/imageSourceBlock.js +1 -1
- package/Materials/Node/Blocks/Dual/imageSourceBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/smartFilterTextureBlock.d.ts +20 -0
- package/Materials/Node/Blocks/Dual/smartFilterTextureBlock.js +41 -3
- package/Materials/Node/Blocks/Dual/smartFilterTextureBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/smartFilterFragmentOutputBlock.js +0 -1
- package/Materials/Node/Blocks/Fragment/smartFilterFragmentOutputBlock.js.map +1 -1
- package/Materials/PBR/openPbrMaterial.d.ts +8 -0
- package/Materials/PBR/openPbrMaterial.js +16 -4
- package/Materials/PBR/openPbrMaterial.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.d.ts +8 -0
- package/Materials/PBR/pbrBaseMaterial.js +16 -4
- package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
- package/Shaders/openpbr.vertex.js +1 -1
- package/Shaders/openpbr.vertex.js.map +1 -1
- package/ShadersWGSL/openpbr.vertex.js +1 -1
- package/ShadersWGSL/openpbr.vertex.js.map +1 -1
- package/package.json +1 -1
|
@@ -677,12 +677,20 @@ export declare abstract class PBRBaseMaterial extends PBRBaseMaterialBase {
|
|
|
677
677
|
*/
|
|
678
678
|
get realTimeFiltering(): boolean;
|
|
679
679
|
set realTimeFiltering(b: boolean);
|
|
680
|
+
/**
|
|
681
|
+
* Checks if the real-time filtering setting is explicitly set by the user.
|
|
682
|
+
*/
|
|
683
|
+
get isUserSetRealTimeFiltering(): boolean;
|
|
680
684
|
private _realTimeFilteringQuality;
|
|
681
685
|
/**
|
|
682
686
|
* Quality switch for realtime filtering
|
|
683
687
|
*/
|
|
684
688
|
get realTimeFilteringQuality(): number;
|
|
685
689
|
set realTimeFilteringQuality(n: number);
|
|
690
|
+
/**
|
|
691
|
+
* Checks if the real-time filtering quality has been set by the user.
|
|
692
|
+
*/
|
|
693
|
+
get isUserSetRealTimeFilteringQuality(): boolean;
|
|
686
694
|
/**
|
|
687
695
|
* Can this material render to several textures at once
|
|
688
696
|
*/
|
|
@@ -246,22 +246,34 @@ export class PBRBaseMaterial extends PBRBaseMaterialBase {
|
|
|
246
246
|
* Enables realtime filtering on the texture.
|
|
247
247
|
*/
|
|
248
248
|
get realTimeFiltering() {
|
|
249
|
-
return this._realTimeFiltering;
|
|
249
|
+
return this._realTimeFiltering ?? false;
|
|
250
250
|
}
|
|
251
251
|
set realTimeFiltering(b) {
|
|
252
252
|
this._realTimeFiltering = b;
|
|
253
253
|
this.markAsDirty(1);
|
|
254
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* Checks if the real-time filtering setting is explicitly set by the user.
|
|
257
|
+
*/
|
|
258
|
+
get isUserSetRealTimeFiltering() {
|
|
259
|
+
return typeof this._realTimeFiltering === "boolean";
|
|
260
|
+
}
|
|
255
261
|
/**
|
|
256
262
|
* Quality switch for realtime filtering
|
|
257
263
|
*/
|
|
258
264
|
get realTimeFilteringQuality() {
|
|
259
|
-
return this._realTimeFilteringQuality;
|
|
265
|
+
return this._realTimeFilteringQuality ?? 8;
|
|
260
266
|
}
|
|
261
267
|
set realTimeFilteringQuality(n) {
|
|
262
268
|
this._realTimeFilteringQuality = n;
|
|
263
269
|
this.markAsDirty(1);
|
|
264
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* Checks if the real-time filtering quality has been set by the user.
|
|
273
|
+
*/
|
|
274
|
+
get isUserSetRealTimeFilteringQuality() {
|
|
275
|
+
return typeof this._realTimeFilteringQuality === "number";
|
|
276
|
+
}
|
|
265
277
|
/**
|
|
266
278
|
* Can this material render to several textures at once
|
|
267
279
|
*/
|
|
@@ -628,8 +640,8 @@ export class PBRBaseMaterial extends PBRBaseMaterialBase {
|
|
|
628
640
|
* @internal
|
|
629
641
|
*/
|
|
630
642
|
this._forceIrradianceInFragment = false;
|
|
631
|
-
this._realTimeFiltering =
|
|
632
|
-
this._realTimeFilteringQuality =
|
|
643
|
+
this._realTimeFiltering = undefined;
|
|
644
|
+
this._realTimeFilteringQuality = undefined;
|
|
633
645
|
/**
|
|
634
646
|
* Force normal to face away from face.
|
|
635
647
|
* @internal
|