diff --git a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java index d0776f7c6..da5392b5c 100644 --- a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java +++ b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java @@ -1062,6 +1062,10 @@ public class GLRenderer implements Renderer { } } + if (linearizeSrgbImages) { + stringBuf.append("#define SRGB 1\n"); + } + stringBuf.append(source.getDefines()); stringBuf.append(source.getSource());