function resetSceneState( scene, state ) {

	state = saveSceneState( scene, state );

	scene.background = null;
	scene.backgroundNode = null;
	scene.overrideMaterial = null;

	return state;

}
Saves the state of the given scene and stores it into the given state object.
Besides, the function also resets the state of the scene to its default values.

If not state object is provided, the function creates one.

@function
@param {Scene} scene - The scene.
@param {Object} [state={}] - The state.
@return {Object} The state.