TextureOptions

class Communicator.TextureOptions()

Parameters that describe a texture and control how it is applied.


Properties

Communicator.TextureOptions.imageId

The image used by this texture.

Communicator.TextureOptions.interpolation

Enables or disables interpolation of texel colors (also known as linear filtering). (Default: true)

If disabled, the texture image will appear pixelated when enlarged.

Communicator.TextureOptions.matrix

A matrix to be applied to the texture’s UV coordinates. If not specified, the identity matrix will be used.

Communicator.TextureOptions.mipMapping

Enables or disables mipmapping. (Default: true)

Enable mipmapping to improve image quality at the expense of slightly more memory usage. Depending on the platform, mipmapping may take effect only for textures with dimensions that are powers of two.

If disabled, textures may appear noisy when reduced in size.

Communicator.TextureOptions.modifiers

Flags that control how the texture is applied. This is the result of OR-ing together one or more TextureModifier (Default: 0)

Communicator.TextureOptions.parameterization

Indicates how texture coordinates are specified or generated. (Defalut: TextureParameterization.UV

This controls where a given pixel of the texture appears on the object to which it is applied.

Communicator.TextureOptions.tiling

Controls how UV coordinates are interpreted outside the [0.0, 1.0] range. (Default: TextureTiling.Repeat