simvx.graphics.assets.cubemap_loader

Load cubemap textures from 6 face images or equirectangular HDR.

Module Contents

Functions

load_cubemap

Load a cubemap from 6 face images or a solid color.

Data

API

simvx.graphics.assets.cubemap_loader.__all__

[‘load_cubemap’]

simvx.graphics.assets.cubemap_loader.log

‘getLogger(…)’

simvx.graphics.assets.cubemap_loader.load_cubemap(device: Any, physical_device: Any, queue: Any, cmd_pool: Any, face_paths: list[str] | None = None, color: tuple[float, float, float] | None = None) tuple[Any, Any, Any]

Load a cubemap from 6 face images or a solid color.

Args: face_paths: List of 6 image paths [+X, -X, +Y, -Y, +Z, -Z]. color: Solid color (r, g, b) in 0-1 range (fallback if no paths).

Returns: (image_view, sampler, image) tuple for the cubemap.