Skip to main content

sampler2d_copy_with_margins

sampler2d_copy_with_margins(destination, source, sourceX, sourceY, destinationX, destinationY, width, height, marginLeft, marginRight, marginTop, marginBottom)

Copy a patch from another sampler with a margin. This is useful for texture rendering where filtering can cause bleeding along the edges of the patch.

Kind: global function

ParamTypeDescription
destinationSampler2D
sourceSampler2Dwhere to copy from
sourceXNumberwhere to start reading from, X coordinate
sourceYNumberwhere to start reading from, X coordinate
destinationXNumberwhere to start writing to, X coordinate
destinationYNumberwhere to start writing to, X coordinate
widthNumbersize of the patch that is to be copied
heightNumbersize of the patch that is to be copied
marginLeftNumber
marginRightNumber
marginTopNumber
marginBottomNumber