Showcase for mip selection in WebGl.
Interest case about how video card selects wich mip level to use. It selects level depending on distance between sampler arguments from neighbour pixels.
Example picture created by this transform:
gl_FragColor = texture2D(uSampler, vec2(pow((vTextureCoord.s-0.5)*(vTextureCoord.s-0.5) + (vTextureCoord.t-0.5)*(vTextureCoord.t-0.5), 0.1), vTextureCoord.t));
Official OpenGL docs, see section 3.7.7
Many example images posted by different users can be found in this thread on Pikabu
npm install
npm run build