@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / EnvironmentSkyboxState
Type Alias: EnvironmentSkyboxState
ts
type EnvironmentSkyboxState = {
type: EnvironmentSkyboxType;
color: string;
imageUrl?: string;
gradient: {
colors: string[];
effect: EnvironmentGradientEffect;
};
};Defined in: components/Environment.ts:11
Skybox configuration. Only the fields relevant to type are read at render time.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
type | EnvironmentSkyboxType | Active skybox mode. | components/Environment.ts:13 |
color | string | Solid color used when type is "color". #rrggbb. | components/Environment.ts:15 |
imageUrl? | string | URL or localasset:// path of the equirectangular image used when type is "image". | components/Environment.ts:17 |
gradient | { colors: string[]; effect: EnvironmentGradientEffect; } | Gradient parameters used when type is "gradient". | components/Environment.ts:19 |
gradient.colors | string[] | Ordered list of color stops as #rrggbb strings. | components/Environment.ts:21 |
gradient.effect | EnvironmentGradientEffect | Gradient distribution. | components/Environment.ts:23 |

