本文整理了Java中com.jme3.renderer.Renderer.setLinearizeSrgbImages
方法的一些代码示例,展示了Renderer.setLinearizeSrgbImages
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Renderer.setLinearizeSrgbImages
方法的具体详情如下:
包路径:com.jme3.renderer.Renderer
类名称:Renderer
方法名:setLinearizeSrgbImages
[英]If enabled, all Image with the Image#setColorSpace(com.jme3.texture.image.ColorSpace)set shall undergo an sRGB to linear RGB color conversion when read by a shader. The conversion is performed for the following formats: - Image.Format#RGB8- Image.Format#RGBA8- Image.Format#Luminance8- Image.Format#Luminance8Alpha8- Image.Format#DXT1- Image.Format#DXT1A- Image.Format#DXT3- Image.Format#DXT5For all other formats, no conversion is performed. If this option is toggled at runtime, textures must be reloaded for the change to take effect.
[中]如果启用,所有设置了Image#setColorSpace(com.jme3.texture.Image.ColorSpace)的图像在被着色器读取时都应进行sRGB到线性RGB颜色转换。对以下格式执行转换:-图像。格式#RGB8-图像。格式#RGBA8-图像。格式#亮度8-图像。格式#亮度8Alpha8-图像。格式#DXT1-图像。格式#DXT1A-图像。格式#DXT3-图像。格式#dxt5对于所有其他格式,不执行任何转换。如果在运行时切换此选项,则必须重新加载纹理才能使更改生效。
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
renderer.setLinearizeSrgbImages(settings.isGammaCorrection());
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
this.renderer.setLinearizeSrgbImages(settings.isGammaCorrection());
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
renderer.setLinearizeSrgbImages(settings.isGammaCorrection());
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
renderer.setLinearizeSrgbImages(settings.isGammaCorrection());
代码示例来源:origin: org.jmonkeyengine/jme3-lwjgl3
this.renderer.setLinearizeSrgbImages(settings.isGammaCorrection());
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-lwjgl
renderer.setLinearizeSrgbImages(settings.getGammaCorrection());
代码示例来源:origin: org.jmonkeyengine/jme3-jogl
renderer.setLinearizeSrgbImages(settings.isGammaCorrection());
内容来源于网络,如有侵权,请联系作者删除!