jMonkeyEngine / jmonkeyengine

A complete 3-D game development suite written in Java.
http://jmonkeyengine.org
BSD 3-Clause "New" or "Revised" License
3.74k stars 1.12k forks source link

Add MipMaps to PBRTerrainAdvancedTest.java #2289

Closed yaRnMcDonuts closed 1 day ago

yaRnMcDonuts commented 1 week ago

This test case has some noisey rendering due to not setting MipMaps on the terrain material's TextureArrays.

So I added MinFilter.Trilinear to fix this issue, and also added MagFilter.Bilinear.

I don't know much about the different MipMap settings, but MinFilter.Trilinear appeared to create the smoothest results for the terrain in this test case (and my own projects), so I went with that.