com.jme3.renderer.Renderer.setMainFrameBufferSrgb()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中com.jme3.renderer.Renderer.setMainFrameBufferSrgb方法的一些代码示例,展示了Renderer.setMainFrameBufferSrgb的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Renderer.setMainFrameBufferSrgb方法的具体详情如下:
包路径:com.jme3.renderer.Renderer
类名称:Renderer
方法名:setMainFrameBufferSrgb

Renderer.setMainFrameBufferSrgb介绍

[英]If enabled, color values rendered to the main framebuffer undergo linear -> sRGB conversion. This is identical to FrameBuffer#setSrgb(boolean) except it is toggled for the main framebuffer instead of an offscreen buffer. This should be set together with Renderer#setLinearizeSrgbImages(boolean)As a shorthand, the user can set AppSettings#setGammaCorrection(boolean) to true to toggle both Renderer#setLinearizeSrgbImages(boolean) and Renderer#setMainFrameBufferSrgb(boolean) if the Caps#Srgb is supported by the GPU.
[中]如果启用,渲染到主帧缓冲区的颜色值将进行线性->sRGB转换。这与帧缓冲区#setSrgb(布尔值)相同,只是它是为主帧缓冲区而不是屏幕外缓冲区切换的。这应该与Renderer#setlinearizersgbimages(boolean)一起设置。作为简写,用户可以将AppSettings#setGammaCorrection(boolean)设置为true,以在GPU支持Caps#Srgb的情况下切换Renderer#setlinearizersgbimages(boolean)和Renderer#setMainFrameBufferSrgb(boolean)。

代码示例

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

renderer.setMainFrameBufferSrgb(settings.isGammaCorrection());
renderer.setLinearizeSrgbImages(settings.isGammaCorrection());

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

this.renderer.setMainFrameBufferSrgb(settings.isGammaCorrection());
this.renderer.setLinearizeSrgbImages(settings.isGammaCorrection());

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

ARBDebugOutput.glDebugMessageCallbackARB(new ARBDebugOutputCallback(new LwjglGLDebugOutputHandler()));
renderer.setMainFrameBufferSrgb(settings.isGammaCorrection());
renderer.setLinearizeSrgbImages(settings.isGammaCorrection());

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

renderer.setMainFrameBufferSrgb(settings.isGammaCorrection());
renderer.setLinearizeSrgbImages(settings.isGammaCorrection());

代码示例来源:origin: org.jmonkeyengine/jme3-lwjgl3

this.renderer.setMainFrameBufferSrgb(settings.isGammaCorrection());
this.renderer.setLinearizeSrgbImages(settings.isGammaCorrection());

代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-lwjgl

renderer.setMainFrameBufferSrgb(settings.getGammaCorrection());
renderer.setLinearizeSrgbImages(settings.getGammaCorrection());

代码示例来源:origin: org.jmonkeyengine/jme3-jogl

renderer.setMainFrameBufferSrgb(settings.isGammaCorrection());
renderer.setLinearizeSrgbImages(settings.isGammaCorrection());

相关文章