gs.textures.ImageTexture#
- class genesis.options.textures.ImageTexture(*, image_path: str | None = None, image_array: numpy.ndarray | None = None, image_color: tuple[float, ...] = None, encoding: Literal['srgb', 'linear'] = 'srgb') None[source]#
A texture with a texture map (image).
- Parameters:
image_path (str, optional) – Path to the image file.
image_array (np.ndarray, optional) – Image array.
image_color (float or list of float, optional) – The factor that will be multiplied with the base color, stored as tuple. Default is None.
encoding (str, optional) –
The encoding way of the image. Possible values are [‘srgb’, ‘linear’]. Default is ‘srgb’.
’srgb’: Encoding of some RGB images.
’linear’: All generic images, such as opacity, roughness and normal, should be encoded with ‘linear’.