# Environment ![Environment](/cientos/environment.png) Is a component abstraction that automatically sets up a global cubemap, which affects the default `scene.environment`, and optionally `scene.background`, It uses the composable [useEnvironment](/cientos/abstractions/use-environment) under the hood to load the cubemap. ## Usage ```html ``` You can also pass the `.hdr` file directly: ```html ``` ![Environment](/cientos/envmaps.png) ## Texture reference You can access the model reference by pasing a `ref` to the `` prop and then using the method `getTexture()` to get the object. ```vue{4,6,9,14,17} ``` ## Props | Prop | Description | Default | | :----------- | :------------------------------------------------------------------- | ------------------------------------------------------------------------------ | | `files` | Array of 6 urls to images, one for each side of the CubeTexture. | `undefined` | | `path` | Path to the environment map files. | `undefined` | | `encoding` | Encoding of the environment map. | `sRGBEncoding` for an array of files and `LinearEncoding` for a single texture | | `background` | If `true`, the environment map will be used as the scene background. | `false` | | `blur` | Blur factor between 0 and 1. (only works with three 0.146 and up) | 0 | | `preset` | Preset environment map. | `undefined` |