Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 888 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 888 Bytes

mipExploration

Showcase for mip selection in WebGl.

Example

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

How to build

npm install
npm run build