Menu - Top - Home - Donate to Me

H3DU.TextureInfo

Back to documentation index.

H3DU.TextureInfo([params])

Specifies information about a texture, which can serve as image data applied to the surface of a shape, or even a 2-dimensional array of pixels used for some other purpose, such as a depth map, a height map, a bump map, a specular map, and so on.

By default, texture coordinates go from (0,0) at the lower left corner to (1,1) at the upper right corner (because the "topDown" property is false by default).

For best results, any textures to be used in WebGL should have width and height each equal to a power of 2, such as 2, 4, 8, 16, and 32.

Parameters

Methods

H3DU.TextureInfo#copyFrom([other])

Copies the parameters from another texture information object to this object.

Parameters

Return Value

This object. (Type: H3DU.TextureInfo)

H3DU.TextureInfo#setParams(params)

Sets parameters for this texture information object.

Parameters

Return Value

This object. (Type: H3DU.TextureInfo)

Back to documentation index.