Skip to content

Commit a895066

Browse files
committed
Fix cubemaps made with bgenv having no mipmaps causing no roughness.
1 parent 3a3671d commit a895066

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Plugins/CafeLibrary/Agl/RenderToTexture/Cubemap/CubemapManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ public static void GenerateCubemaps(List<GenericRenderer> targetModels, bool isW
103103

104104
//Just generate mips to keep things easier
105105
texture.Bind();
106+
texture.MinFilter = TextureMinFilter.LinearMipmapLinear;
107+
texture.UpdateParameters();
106108
texture.GenerateMipmaps();
107109
texture.Unbind();
108110

0 commit comments

Comments
 (0)