Expose context lost simulator

This commit is contained in:
schmelczerandras 2020-10-27 11:08:31 +01:00
parent 32aebe9036
commit 69ad74ed73
8 changed files with 36 additions and 11 deletions

View file

@ -11,4 +11,5 @@ export const defaultStartupSettings: StartupSettings = {
backgroundColor: vec4.fromValues(1, 1, 1, 1),
lightPenetrationRatio: 0.75,
enableStopwatch: false,
enableContextLostSimulator: false,
};

View file

@ -41,6 +41,13 @@ export interface StartupSettings {
*/
paletteSize: number;
/**
* Many context lost event will be simulated when enabled.
*
* Useful for testing.
*/
enableContextLostSimulator: boolean;
/**
* The default background color of the scene, can have transparency on every platform.
*/