@onerjs/core 8.37.5 → 8.37.6
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/Meshes/mesh.js +1 -1
- package/Meshes/mesh.js.map +1 -1
- package/package.json +1 -1
- package/scene.d.ts +6 -0
- package/scene.js +14 -0
- package/scene.js.map +1 -1
package/package.json
CHANGED
package/scene.d.ts
CHANGED
|
@@ -966,6 +966,12 @@ export declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetCont
|
|
|
966
966
|
*/
|
|
967
967
|
set texturesEnabled(value: boolean);
|
|
968
968
|
get texturesEnabled(): boolean;
|
|
969
|
+
private _materialsEnabled;
|
|
970
|
+
/**
|
|
971
|
+
* Gets or sets a boolean indicating if materials are enabled on this scene
|
|
972
|
+
*/
|
|
973
|
+
set materialsEnabled(value: boolean);
|
|
974
|
+
get materialsEnabled(): boolean;
|
|
969
975
|
private _frameGraph;
|
|
970
976
|
private _currentCustomRenderFunction?;
|
|
971
977
|
/**
|
package/scene.js
CHANGED
|
@@ -565,6 +565,19 @@ export class Scene {
|
|
|
565
565
|
get texturesEnabled() {
|
|
566
566
|
return this._texturesEnabled;
|
|
567
567
|
}
|
|
568
|
+
/**
|
|
569
|
+
* Gets or sets a boolean indicating if materials are enabled on this scene
|
|
570
|
+
*/
|
|
571
|
+
set materialsEnabled(value) {
|
|
572
|
+
if (this._materialsEnabled === value) {
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
this._materialsEnabled = value;
|
|
576
|
+
this.markAllMaterialsAsDirty(127);
|
|
577
|
+
}
|
|
578
|
+
get materialsEnabled() {
|
|
579
|
+
return this._materialsEnabled;
|
|
580
|
+
}
|
|
568
581
|
/**
|
|
569
582
|
* Gets or sets the frame graph used to render the scene. If set, the scene will use the frame graph to render the scene instead of the default render loop.
|
|
570
583
|
*/
|
|
@@ -1192,6 +1205,7 @@ export class Scene {
|
|
|
1192
1205
|
this._unObserveActiveCameras = null;
|
|
1193
1206
|
// Textures
|
|
1194
1207
|
this._texturesEnabled = true;
|
|
1208
|
+
this._materialsEnabled = true;
|
|
1195
1209
|
this._frameGraph = null;
|
|
1196
1210
|
/**
|
|
1197
1211
|
* List of frame graphs associated with the scene
|