import Sun from "../environment/sky";
import Shadows from "../environment/shadow";
// import Clouds from '../clouds/clouds';
import PostProcessing from "../postProcessing/postProcessing";
import StatsHelper from "../helpers/StatsHelper";
// import AutoRotate from "../tools/autoRotate";
import Controls from "../controls/controls";
import FPSLimiter from "../helpers/frameLimiter";
import GpuValidater from "../helpers/gpuValidater";
import { AdaptiveDpr, AdaptiveEvents, Environment } from "@react-three/drei";

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

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

            <Sun />

            <Shadows />

            <PostProcessing />

            {/* <Clouds /> */}

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

            {/* <AutoRotate /> */}

            <FPSLimiter />

            <GpuValidater />

            <StatsHelper />

            <AdaptiveEvents />

            <AdaptiveDpr pixelated />
        </>
    );
}

export default Setup;
