Skip to main content

WrapMode

Enum

Describes how a texture should be sampled when using coordinates outside of the normal range.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Since Lens Scripting v221

Index

Enumeration Members

ClampToBorder

ClampToBorder: number

Take the border color at the edge of a texture and stretch it out.

Since

Lens Scripting Version 221


ClampToEdge

ClampToEdge: number

Take the average of the border color and stretch it out.

Since

Lens Scripting Version 221


MirroredRepeat

MirroredRepeat: number

Repeats the current texture at the edge again, but flipping the orientation.

Since

Lens Scripting Version 221


Repeat

Repeat: number

Repeats the current texture at the edge again.

Since

Lens Scripting Version 221