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

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

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

Renderer.copyFrameBuffer介绍

[英]Copies contents from src to dst, scaling if necessary.
[中]将内容从src复制到dst,必要时进行缩放。

代码示例

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

public void postFrame(FrameBuffer out) {
  FrameBuffer sceneBuffer = renderFrameBuffer;
  if (renderFrameBufferMS != null && !renderer.getCaps().contains(Caps.OpenGL32)) {
    renderer.copyFrameBuffer(renderFrameBufferMS, renderFrameBuffer, true);
  } else if (renderFrameBufferMS != null) {
    sceneBuffer = renderFrameBufferMS;
  }
  renderFilterChain(renderer, sceneBuffer);
  renderer.setFrameBuffer(outputBuffer);
  
  //viewport can be null if no filters are enabled
  if (viewPort != null) {
    renderManager.setCamera(viewPort.getCamera(), false);
  }
}

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

@Override
protected void postFrame(RenderManager renderManager, ViewPort viewPort, FrameBuffer prevFilterBuffer, FrameBuffer sceneBuffer) {
  renderManager.setCamera(viewPort.getCamera(), false);
  if (prevFilterBuffer != sceneBuffer) {
    renderManager.getRenderer().copyFrameBuffer(prevFilterBuffer, sceneBuffer, false);
  }
  renderManager.getRenderer().setFrameBuffer(sceneBuffer);
  viewPort.getQueue().renderQueue(RenderQueue.Bucket.Translucent, renderManager, viewPort.getCamera());
}

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

renderer.copyFrameBuffer(msFB, mainSceneFB, true);
}else{

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

r.copyFrameBuffer(cachedPreNormals, normalPass.getRenderFrameBuffer(), false);
} else {

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

public void postFrame(FrameBuffer out) {
  FrameBuffer sceneBuffer = renderFrameBuffer;
  if (renderFrameBufferMS != null && !renderer.getCaps().contains(Caps.OpenGL32)) {
    renderer.copyFrameBuffer(renderFrameBufferMS, renderFrameBuffer, true);
  } else if (renderFrameBufferMS != null) {
    sceneBuffer = renderFrameBufferMS;
  }
  renderFilterChain(renderer, sceneBuffer);
  renderer.setFrameBuffer(outputBuffer);
  
  //viewport can be null if no filters are enabled
  if (viewPort != null) {
    renderManager.setCamera(viewPort.getCamera(), false);
  }
}

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

public void postFrame(FrameBuffer out) {
  FrameBuffer sceneBuffer = renderFrameBuffer;
  if (renderFrameBufferMS != null && !renderer.getCaps().contains(Caps.OpenGL31)) {
    renderer.copyFrameBuffer(renderFrameBufferMS, renderFrameBuffer);
  } else if (renderFrameBufferMS != null) {
    sceneBuffer = renderFrameBufferMS;
  }
  renderFilterChain(renderer, sceneBuffer);        
  renderer.setFrameBuffer(outputBuffer);
  
  //viewport can be null if no filters are enabled
  if (viewPort != null) {
    renderManager.setCamera(viewPort.getCamera(), false);
  }
}

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

@Override
protected void postFrame(RenderManager renderManager, ViewPort viewPort, FrameBuffer prevFilterBuffer, FrameBuffer sceneBuffer) {
  renderManager.setCamera(viewPort.getCamera(), false);
  if (prevFilterBuffer != sceneBuffer) {
    renderManager.getRenderer().copyFrameBuffer(prevFilterBuffer, sceneBuffer, false);
  }
  renderManager.getRenderer().setFrameBuffer(sceneBuffer);
  viewPort.getQueue().renderQueue(RenderQueue.Bucket.Translucent, renderManager, viewPort.getCamera());
}

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

@Override
protected void postFrame(RenderManager renderManager, ViewPort viewPort, FrameBuffer prevFilterBuffer, FrameBuffer sceneBuffer) {
  renderManager.setCamera(viewPort.getCamera(), false);
  if (prevFilterBuffer != sceneBuffer) {
    renderManager.getRenderer().copyFrameBuffer(prevFilterBuffer, sceneBuffer, false);
  }
  renderManager.getRenderer().setFrameBuffer(sceneBuffer);
  viewPort.getQueue().renderQueue(RenderQueue.Bucket.Translucent, renderManager, viewPort.getCamera());
}

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

@Override
protected void postFrame(RenderManager renderManager, ViewPort viewPort, FrameBuffer prevFilterBuffer, FrameBuffer sceneBuffer) {
  renderManager.setCamera(viewPort.getCamera(), false);
  if (prevFilterBuffer != sceneBuffer) {
    renderManager.getRenderer().copyFrameBuffer(prevFilterBuffer, sceneBuffer, false);
  }
  renderManager.getRenderer().setFrameBuffer(sceneBuffer);
  viewPort.getQueue().renderQueue(RenderQueue.Bucket.Translucent, renderManager, viewPort.getCamera());
}

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

renderer.copyFrameBuffer(msFB, mainSceneFB);
}else{

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

renderer.copyFrameBuffer(msFB, mainSceneFB, true);
}else{

相关文章