|
|
@ -55,9 +55,7 @@ import com.jme3.texture.Texture; |
|
|
|
import com.jme3.texture.Texture.WrapAxis; |
|
|
|
import com.jme3.texture.Texture.WrapAxis; |
|
|
|
import com.jme3.util.BufferUtils; |
|
|
|
import com.jme3.util.BufferUtils; |
|
|
|
import com.jme3.util.ListMap; |
|
|
|
import com.jme3.util.ListMap; |
|
|
|
import com.jme3.util.NativeObject; |
|
|
|
|
|
|
|
import com.jme3.util.NativeObjectManager; |
|
|
|
import com.jme3.util.NativeObjectManager; |
|
|
|
import com.jme3.util.SafeArrayList; |
|
|
|
|
|
|
|
import java.nio.*; |
|
|
|
import java.nio.*; |
|
|
|
import java.util.EnumSet; |
|
|
|
import java.util.EnumSet; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
@ -2488,4 +2486,14 @@ public class LwjglRenderer implements Renderer { |
|
|
|
renderMeshDefault(mesh, lod, count); |
|
|
|
renderMeshDefault(mesh, lod, count); |
|
|
|
// }
|
|
|
|
// }
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setMainFrameBufferSrgb(boolean srgb) { |
|
|
|
|
|
|
|
//Gamma correction
|
|
|
|
|
|
|
|
if(srgb && GLContext.getCapabilities().GL_ARB_framebuffer_sRGB){ |
|
|
|
|
|
|
|
glEnable(GL30.GL_FRAMEBUFFER_SRGB); |
|
|
|
|
|
|
|
logger.log(Level.FINER, "SRGB FrameBuffer enabled (Gamma Correction)"); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
glDisable(GL30.GL_FRAMEBUFFER_SRGB); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|