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
Param | Type | Description |
---|---|---|
destination | Sampler2D | |
source | Sampler2D | where to copy from |
sourceX | Number | where to start reading from, X coordinate |
sourceY | Number | where to start reading from, X coordinate |
destinationX | Number | where to start writing to, X coordinate |
destinationY | Number | where to start writing to, X coordinate |
width | Number | size of the patch that is to be copied |
height | Number | size of the patch that is to be copied |
marginLeft | Number | |
marginRight | Number | |
marginTop | Number | |
marginBottom | Number |