Skip to content

Shadow Mipmaps

Shadowtex

const bool generateShadowMipmap = true;
const bool shadowtexMipmap = true;
const bool shadowtex0Mipmap = true;
const bool shadowtex1Mipmap = true;

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.

ShadowColor

const bool generateShadowColorMipmap = true;
const bool shadowcolor0Mipmap = true;
const bool shadowColor0Mipmap = true;
const bool shadowcolor1Mipmap = true;
const bool shadowColor1Mipmap = 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.