Most visited

Recently visited

Texture.WrapMode

public static final enum Texture.WrapMode
extends Enum<Texture.WrapMode>

java.lang.Object
   ↳ java.lang.Enum<com.viro.core.Texture.WrapMode>
     ↳ com.viro.core.Texture.WrapMode


WrapMode determines what happens when the texture coordinates extend outside the [0.0, 1.0] range when mapping the image.

Summary

Enum values

Texture.WrapMode  CLAMP

Texture coordinates are clamped between 0.0 and 1.0. 

Texture.WrapMode  MIRROR

Texture coordinates repeat, but the range reverses each time the limit is exceeded. 

Texture.WrapMode  REPEAT

Texture coordinates repeat by going back to 0.0 after exceeding 1.0. 

Public methods

static Texture.WrapMode valueOf(String name)
static final WrapMode[] values()

Enum values

CLAMP

Texture.WrapMode CLAMP

Texture coordinates are clamped between 0.0 and 1.0.

MIRROR

Texture.WrapMode MIRROR

Texture coordinates repeat, but the range reverses each time the limit is exceeded. E.g. from 0.0 to 1.0, then 1.0 to 0.0, then 0.0 to 1.0, etc.

REPEAT

Texture.WrapMode REPEAT

Texture coordinates repeat by going back to 0.0 after exceeding 1.0. Essentially this means the renderer only uses the fractional part of the texture coordinates when sampling.

Public methods

valueOf

Texture.WrapMode valueOf (String name)

Parameters
name String

Returns
Texture.WrapMode

values

WrapMode[] values ()

Returns
WrapMode[]

Hooray!