import Sun from '../environment/sky'
import Shadows from '../environment/shadow'
import PostProcessing from '../postProcessing/postProcessing'
import Controls from '../controls/controls';
import { AdaptiveDpr, AdaptiveEvents, Environment } from '@react-three/drei'

import background from "../../../assets/textures/hdr/mudroadpuresky2k.hdr";
// import { Perf } from 'r3f-perf';

function Setup() {
    return (
        <>
            <Controls />

            <Sun />

            <Shadows />

            <PostProcessing />

            {/* <Perf position="bottom-left" className="scene-performance-stats"/> */}

            {/* <MovingClouds /> */}

            <Environment files={background} environmentIntensity={1.5} />

            <AdaptiveEvents />

            <AdaptiveDpr pixelated />
        </>
    )
}

export default Setup;
