TextureSampler
class TextureSampler
Defines the sampling behavior for a texture.
The fields of this sampler are based on the public Filament TextureSampler class but may diverge over time.
Summary
Nested types |
|---|
|
Defines the constants for texture magnification filters. |
|
Defines the constants for texture minification filters. |
class TextureSampler.WrapModeDefines the constants for texture wrap modes. |
Public constructors |
|---|
TextureSampler(Defines the sampling behavior for a texture. |
Public properties |
|
|---|---|
TextureSampler.MagnificationFilter |
an |
TextureSampler.MinificationFilter |
an |
TextureSampler.WrapMode |
an |
TextureSampler.WrapMode |
an |
TextureSampler.WrapMode |
an |
Public constructors
TextureSampler
TextureSampler(
minificationFilter: TextureSampler.MinificationFilter = MinificationFilter.LINEAR,
magnificationFilter: TextureSampler.MagnificationFilter = MagnificationFilter.LINEAR,
wrapModeHorizontal: TextureSampler.WrapMode = WrapMode.REPEAT,
wrapModeVertical: TextureSampler.WrapMode = WrapMode.REPEAT,
wrapModeDepth: TextureSampler.WrapMode = WrapMode.REPEAT
)
Defines the sampling behavior for a texture.
The fields of this sampler are based on the public Filament TextureSampler class but may diverge over time.
| Parameters | |
|---|---|
minificationFilter: TextureSampler.MinificationFilter = MinificationFilter.LINEAR |
an |
magnificationFilter: TextureSampler.MagnificationFilter = MagnificationFilter.LINEAR |
an |
wrapModeHorizontal: TextureSampler.WrapMode = WrapMode.REPEAT |
an |
wrapModeVertical: TextureSampler.WrapMode = WrapMode.REPEAT |
an |
wrapModeDepth: TextureSampler.WrapMode = WrapMode.REPEAT |
an |
Public properties
magnificationFilter
val magnificationFilter: TextureSampler.MagnificationFilter
an Int which describes how neighboring texels are sampled when the rendered size is larger than the texture.
minificationFilter
val minificationFilter: TextureSampler.MinificationFilter
an Int which describes how neighboring texels are sampled when the rendered size is smaller than the texture.
wrapModeDepth
val wrapModeDepth: TextureSampler.WrapMode
an Int which describes how texture coordinates outside the 0-1 range are handled along the depth axis.
wrapModeHorizontal
val wrapModeHorizontal: TextureSampler.WrapMode
an Int which describes how texture coordinates outside the 0-1 range are handled along the horizontal axis.
wrapModeVertical
val wrapModeVertical: TextureSampler.WrapMode
an Int which describes how texture coordinates outside the 0-1 range are handled along the vertical axis.