glsl crop + cornerPin SOP = white border?

Hi there,

I have a weird phenomenon which I pinned down :wink: to the cornerPin SOP and a crop shader.
Can someone explain, where the white border on the left is coming from?

Cheers, David
cornerPin border.toe (5.88 KB)

The culprit here is the texture coordinates of the grid SOP and how the texture wraps around at the edges.
To avoid it, change the Extend U and Extend V texture sampling parameters of the Color Map of the Constant MAT to Zero, by default they are set to Repeat, so what you are seeing is part of the right most column of pixels in your texture.
To access the texture sampling parameters, click on the double arrow beside the Color Map parameter on the constant MAT.

Cheers
Markus

Thank you Markus!

I didn’t know there were other parameters hiding in the double arrow :nerd:

Cheers, David