Shadow Mipmaps
Shadowtex
Section titled “Shadowtex”const bool generateShadowMipmap = true;
Section titled “const bool generateShadowMipmap = true;”const bool shadowtexMipmap = true;
Section titled “const bool shadowtexMipmap = true;”const bool shadowtex0Mipmap = true;
Section titled “const bool shadowtex0Mipmap = true;”const bool shadowtex1Mipmap = true;
Section titled “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
Section titled “ShadowColor”const bool generateShadowColorMipmap = true;
Section titled “const bool generateShadowColorMipmap = true;”const bool shadowcolor0Mipmap = true;
Section titled “const bool shadowcolor0Mipmap = true;”const bool shadowColor0Mipmap = true;
Section titled “const bool shadowColor0Mipmap = true;”const bool shadowcolor1Mipmap = true;
Section titled “const bool shadowcolor1Mipmap = true;”const bool shadowColor1Mipmap = true;
Section titled “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.