Skip to main content
Defines how texture coordinates outside the [0, 1] range are handled.
  • clamp
  • repeat
  • mirror
See ImageSampler for usage.
function init(self: DrawImage, context: Context): boolean
  self.myImage = context:image('myImage')
  self.sampler = ImageSampler(
    -- Image wrap X
    'clamp',
    -- Image wrap Y
    'clamp',
    'bilinear'
  )

  return true
end