本文整理了Java中com.jme3.texture.FrameBuffer.setSrgb()
方法的一些代码示例,展示了FrameBuffer.setSrgb()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FrameBuffer.setSrgb()
方法的具体详情如下:
包路径:com.jme3.texture.FrameBuffer
类名称:FrameBuffer
方法名:setSrgb
[英]Specifies that the color values stored in this framebuffer are in SRGB format. The FrameBuffer must have a texture attached with the flag Image#isSrgb() set to true. The Renderer must expose the Caps#Srgb capability for this option to take any effect. Rendering operations performed on this framebuffer shall undergo a linear -> sRGB color space conversion when this flag is enabled. If RenderState#getBlendMode() is enabled, it will be performed in linear space by first decoding the stored sRGB pixel values into linear, combining with the shader result, and then converted back to sRGB upon being written into the framebuffer.
[中]
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
fb.setDepthBuffer(Format.Depth);
fb.setColorBuffer(Format.RGB8);
fb.setSrgb(srgb);
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-desktop
fb.setDepthBuffer(Format.Depth);
fb.setColorBuffer(Format.RGB8);
fb.setSrgb(srgb);
内容来源于网络,如有侵权,请联系作者删除!