vispy.visuals.filters.mesh module

class vispy.visuals.filters.mesh.TextureFilter(texture, texcoords, enabled=True)[source]

Bases: vispy.visuals.filters.base_filter.Filter

Filter to apply a texture to a mesh.

Note the texture is applied by multiplying the texture color by the Visual’s produced color. By specifying color=”white” when creating a MeshVisual the result will be the unaltered texture value. Any other color, including the default, will result in a blending of that color and the color of the texture.

property enabled

True to display the texture, False to disable.

property texcoords

The texture coordinates as an (N, 2) array of floats.

property texture

The texture image.