GLRenderer: inject SRGB define if texture linearization is enabled

experimental
shadowislord 10 years ago
parent 8b300f5109
commit 4e7d7fd2f1
  1. 4
      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());

Loading…
Cancel
Save