1
0
mirror of synced 2024-11-28 01:10:51 +01:00

Generate mip maps for custom irradiance maps if they have none (prevents black skyboxes)

This commit is contained in:
KillzXGaming 2019-06-20 16:05:07 -04:00
parent ad1c4aed4e
commit 9fe7f254ff
5 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -79,6 +79,10 @@ namespace Switch_Toolbox.Library
{
DDS specularSdr = new DDS(Runtime.PBR.SpecularCubeMapPath);
specularpbr = DDS.CreateGLCubeMap(specularSdr);
if (specularSdr.MipCount <= 1)
{
GL.GenerateMipmap(GenerateMipmapTarget.TextureCubeMap);
}
}
else
{