function resetRendererAndSceneState( renderer, scene, state ) {

	state = resetRendererState( renderer, state );
	state = resetSceneState( scene, state );

	return state;

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

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

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