WrapMode
Texture coordinate wrapping mode.
| Type | Name | Interface Description |
|---|---|---|
| Enum | Clamp | • Function: Clamps the texture to the last pixel at the edge. |
| Enum | Mirror | • Function: Tiles the texture, creating a repeating pattern by mirroring it at every integer boundary. |
| Enum | Repeat | • Function: Tiles the texture, creating a repeating pattern. |
Examples
Clamp
let value = APJS.WrapMode.Clamp;
Mirror
let value = APJS.WrapMode.Mirror;
Repeat
let value = APJS.WrapMode.Repeat;
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use WrapMode here
}
onUpdate(deltaTime: number) {
}
}