 - u_s9d.z - u_s9d.w;\n\tvec4 color2 = vec4(0.);\n\tif(uv.x &lt;= u_s9d.x &amp;&amp; uv.y &lt;= u_s9d.z){\n\t\tcolor2 = texture2Dgery(getUv(uv.x, uv.y));\n\t}else {\n\t\tif(uv.x &gt;= u_size.x - u_s9d.y &amp;&amp; uv.y &lt;= u_s9d.z){\n\t\t\tcolor2 = texture2Dgery(getUv(u_s9d.x + centerSliceWidth + uv.x - (u_size.x - u_s9d.y), uv.y));\n\t\t}else {\n\t\t\tif(uv.x &lt;= u_s9d.x &amp;&amp; uv.y &gt;= u_size.y - u_s9d.w){\n\t\t\t\tcolor2 = texture2Dgery(getUv(uv.x, centerSliceHeight + u_s9d.z + uv.y - (u_size.y