Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / EnvironmentSkyboxImageProjection

Type Alias: EnvironmentSkyboxImageProjection ​

ts
type EnvironmentSkyboxImageProjection = "screen" | "equirect";

Defined in: components/Environment.ts:19

How an "image" skybox is projected.

  • "screen" (the behaviour when the field is absent): the image is drawn as a flat backdrop stretched over the viewport. It does not rotate with the camera.
  • "equirect": the image is an equirectangular panorama wrapped around the scene, so it turns with the camera like a real sky. .hdr and .exr files load in this mode.