CLEAR

TexturesModule


The TexturesModule class enables images, animation sequences, videos, colors, and other visual artifacts to be combined to form materials.

Example

const Textures = require('Textures');
const Materials = require('Materials');

const material = Materials.get('textureMaterial');
material.diffuse = Textures.get('texture');

Properties

This class exposes no properties.

Methods

MethodDescription

get

get(textureName: string): TextureBase

Returns a texture object, derived from TextureBase, that is specified by textureName. An exception is thrown when the texture isn't found in the project. Possible types are:

  • CanvasTexture
  • ColorTexture
  • DeepLinkTexture
  • ExternalTexture
  • ImageTexture
  • SequenceTexture

See Also: TextureBase.name.

Classes

ClassDescription

CameraTexture

The CameraTexture class.

CanvasTexture

The CanvasTexture class enables painting with a brush to a texture.

ColorTexture

The ColorTexture class encapsulates a texture that has a color (including alpha channel).

DeepLinkTexture

The DeepLinkTexture class represents an image texture passed in via the sharing SDK.

ExternalTexture

The ExternalTexture class encapsulates a visual asset that is downloaded over the network.

ImageTexture

The ImageTexture class encapsulates an image that may be used to form materials for rendering in the scene.

SegmentationTexture

The SegmentationTexture class encapsulates a texture that will be used for image segmentation.

SequenceTexture

The SequenceTexture class is a collection of still images that form an animation.

SourceImageRegionTexture

The SourceImageRegionTexture class.

SubTexture

The SubTexture class exposes details of a texture in UV coordinates.

TextureBase

The TextureBase class describes a texture.