Skip to content

Shadow Mipmaps

Location: any GLSL file


These directives tell Iris to generate a mipmap chain for a given shadowtex buffer. Each one only needs to be defined once in the shader pack, and can be defined in (mostly) any shader file. The mipmap will be generated after the shadow pass but before shadowcomp.

generateShadowMipmap will generate mipmaps for both shadowtex0 and shadowtex1.

const bool generateShadowColorMipmap = true;
Section titled “const bool generateShadowColorMipmap = true;”

Location: any GLSL file


These directives tell Iris to generate a mipmap chain for a shadowcolor buffer. This directive only needs to be defined once in the shader pack, and can be defined in (mostly) any shader file. The mipmap will be generated after the shadow pass but before shadowcomp.

generateShadowColorMipmap will generate mipmaps for both shadowcolor0 and shadowcolor1.