com.jme3.texture.FrameBuffer.setSrgb()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(95)

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

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);

相关文章