Type Alias CubemapDefinition
CubemapDefinition:
| {
color?: string;
faces?: never;
path: { baseUrl: string; format?: "png"
| "jpg"
| "webp" };
preset?: never;
}
| { color?: string; faces: CubemapFaces; path?: never; preset?: never }
| {
color?: string;
faces?: never;
path?: never;
preset: keyof typeof cubemapPresets;
}
| { color: string; faces?: never; path?: never; preset?: never }
| {
color?: string;
faces?: never;
path: { baseUrl: string; format?: "png"
| "jpg"
| "webp" };
preset?: never;
}
| { color?: string; faces: CubemapFaces; path?: never; preset?: never }
| {
color?: string;
faces?: never;
path?: never;
preset: keyof typeof cubemapPresets;
}
| { color: string; faces?: never; path?: never; preset?: never }
Was this helpful?
Defines how a cubemap should be constructed from source materials. This is a discriminated union type with four possible formats:
Only one of
path,faces,preset, orcolorshould be provided.