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

import background from "../../../assets/textures/hdr/mudroadpuresky2k.hdr";

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

            <Sun />

            <Shadows />

            <PostProcessing />

            {/* <MovingClouds /> */}

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

            <StatsHelper />

            <AdaptiveEvents />

            <AdaptiveDpr pixelated />
        </>
    )
}

export default Setup;
