BatchTexture#

用于批渲染的一批纹理,为每个环境提供各自的纹理。可以直接从纹理列表构造,或使用 from_images 和 from_colors 工厂方法,按各环境的图像或颜色构建批次。

class genesis.options.textures.BatchTexture(*, textures: list[genesis.options.textures.Texture | None] = <factory>) → None[source]#

A batch of textures for batch rendering.

Parameters:

textures (List[Optional[Texture]]) – List of textures.