Skip to content

Busyrev/mipExploration

Repository files navigation

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

About

Showcase for mip selection in WebGl. Example:

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages