textureGrad
#シェーダー #GLSL
gradientを明示的に指定してテクスチャをフェッチする
UVが非連続でmipmapがヘンになる場合に使う
UVにmodとかランダムとかを使っている場合に良き
https://registry.khronos.org/OpenGL-Refpages/gl4/html/textureGrad.xhtml
Live Demo
https://gyazo.com/fc83854d3a25de4de6b9a4a6400a970d
https://www.shadertoy.com/view/csjSzR