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

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

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

Renderer.setAlphaToCoverage介绍

[英]Sets the alpha to coverage state.

When alpha coverage and multi-sampling is enabled, each pixel will contain alpha coverage in all of its subsamples, which is then combined when other future alpha-blended objects are rendered.

Alpha-to-coverage is useful for rendering transparent objects without having to worry about sorting them.
[中]将alpha设置为覆盖状态。
启用alpha覆盖和多重采样后,每个像素的所有子样本中都将包含alpha覆盖,然后在渲染其他alpha混合对象时将其合并。
Alpha到coverage对于渲染透明对象非常有用,而无需担心排序问题。

代码示例

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

/**
 * Enable or disable alpha-to-coverage. 
 * <p>
 * When alpha to coverage is enabled and the renderer implementation
 * supports it, then alpha blending will be replaced with alpha dissolve
 * if multi-sampling is also set on the renderer.
 * This feature allows avoiding of alpha blending artifacts due to
 * lack of triangle-level back-to-front sorting.
 * 
 * @param value True to enable alpha-to-coverage, false otherwise.
 */
public void setAlphaToCoverage(boolean value) {
  renderer.setAlphaToCoverage(value);
}

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

/**
 * Enable or disable alpha-to-coverage. 
 * <p>
 * When alpha to coverage is enabled and the renderer implementation
 * supports it, then alpha blending will be replaced with alpha dissolve
 * if multi-sampling is also set on the renderer.
 * This feature allows avoiding of alpha blending artifacts due to
 * lack of triangle-level back-to-front sorting.
 * 
 * @param value True to enable alpha-to-coverage, false otherwise.
 */
public void setAlphaToCoverage(boolean value) {
  renderer.setAlphaToCoverage(value);
}

代码示例来源:origin: info.projectkyoto/mms-engine

/**
 * Enable or disable alpha-to-coverage. 
 * <p>
 * When alpha to coverage is enabled and the renderer implementation
 * supports it, then alpha blending will be replaced with alpha dissolve
 * if multi-sampling is also set on the renderer.
 * This feature allows avoiding of alpha blending artifacts due to
 * lack of triangle-level back-to-front sorting.
 * 
 * @param value True to enable alpha-to-coverage, false otherwise.
 */
public void setAlphaToCoverage(boolean value) {
  renderer.setAlphaToCoverage(value);
}

相关文章