Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

ShowMipmap

This demo uploads each mip level of a texture by hand, filling every level with a flat colour (red at level 0, then green, blue, yellow, white and magenta as the levels get smaller). A grid of textured cubes recedes into the distance so you can see exactly which level the sampler picks — the colour changes at each mip transition.

The uploaded levels are clamped with GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL and GL_TEXTURE_MAX_LOD so only the hand-made levels are ever sampled.

uv run ShowMipmap/ShowMipmap.py

References