Skip to content

Commit 00a75dc

Browse files
committed
use getBestColorTargetFormat for SphericalHarmonics baking
1 parent 2ceb9f2 commit 00a75dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jme3-core/src/main/java/com/jme3/environment/baker/IBLGLEnvBakerLight.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void bakeSphericalHarmonicsCoefficients() {
105105
Format format = Format.RGBA32F;
106106
if (!renderManager.getRenderer().getCaps().contains(Caps.FloatColorBufferRGBA)) {
107107
LOG.warning("Float textures not supported, using RGB8 instead. This may cause accuracy issues.");
108-
format = Format.RGBA8;
108+
format = renderManager.getRenderer().getBestColorTargetFormat(true, true, false, false);
109109
remapMaxValue = 0.05f;
110110
}
111111

0 commit comments

Comments
 (0)