simvx.graphics.renderer.skybox_pass¶
Skybox rendering pass — draws a cubemap-textured sky behind the scene.
Module Contents¶
Classes¶
Renders a cubemap skybox behind the scene. |
Data¶
API¶
- simvx.graphics.renderer.skybox_pass.__all__¶
[‘SkyboxPass’]
- simvx.graphics.renderer.skybox_pass.log¶
‘getLogger(…)’
- class simvx.graphics.renderer.skybox_pass.SkyboxPass(engine: Any)[source]¶
Renders a cubemap skybox behind the scene.
The skybox is drawn as a unit cube with depth test set to LESS_OR_EQUAL and depth written as 1.0 (far plane), so it renders behind all geometry.
Initialization
- setup(cubemap_view: Any, cubemap_sampler: Any, render_pass: Any = None) None[source]¶
Initialize skybox pipeline with a cubemap texture.
When
render_passis provided, the graphics pipeline is compiled against it — needed when the skybox is drawn inside the HDR post-process render pass (R16G16B16A16_SFLOAT) rather than the engine’s default swapchain pass (B8G8R8A8_SRGB). Mismatched formats trigger VUID-vkCmdDraw-renderPass-02684 at draw time.