Generate mip maps for custom irradiance maps if they have none (prevents black skyboxes)
This commit is contained in:
parent
ad1c4aed4e
commit
9fe7f254ff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user