mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-30 11:21:32 +11:00
7 lines
239 B
PHP
7 lines
239 B
PHP
|
//hacky clamp fix
|
||
|
vec2 bordertest = (vTexCoord);
|
||
|
vec3 res = texture(Source, vTexCoord).rgb;
|
||
|
if ( bordertest.x > 0.0001 && bordertest.x < 0.9999 && bordertest.y > 0.0001 && bordertest.y < 0.9999)
|
||
|
res.rgb = res.rgb;
|
||
|
else
|
||
|
res.rgb = vec3(0.0);
|