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

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

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

Renderer.applyRenderState介绍

[英]Applies the given RenderState, making the necessary GL calls so that the state is applied.
[中]应用给定的RenderState,进行必要的GL调用,以便应用该状态。

代码示例

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

private void updateRenderState(RenderManager renderManager, Renderer renderer, TechniqueDef techniqueDef) {
  if (renderManager.getForcedRenderState() != null) {
    renderer.applyRenderState(renderManager.getForcedRenderState());
  } else {
    if (techniqueDef.getRenderState() != null) {
      renderer.applyRenderState(techniqueDef.getRenderState().copyMergedTo(additionalState, mergedRenderState));
    } else {
      renderer.applyRenderState(RenderState.DEFAULT.copyMergedTo(additionalState, mergedRenderState));
    }
  }
}

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

if (startIndex != 0) {
  rm.getRenderer().applyRenderState(ADDITIVE_LIGHT);
  ambientColor.setValue(VarType.Vector4, ColorRGBA.Black);
}else{

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

ambientColor.setValue(VarType.Vector4, ColorRGBA.Black);
r.applyRenderState(ADDITIVE_LIGHT);
isSecondLight = false;

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

rm.getRenderer().applyRenderState(ADDITIVE_LIGHT);
  ambientColor.setValue(VarType.Vector4, ColorRGBA.Black);
} else {

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

private void updateRenderState(RenderManager renderManager, Renderer renderer, TechniqueDef techniqueDef) {
  if (renderManager.getForcedRenderState() != null) {
    renderer.applyRenderState(renderManager.getForcedRenderState());
  } else {
    if (techniqueDef.getRenderState() != null) {
      renderer.applyRenderState(techniqueDef.getRenderState().copyMergedTo(additionalState, mergedRenderState));
    } else {
      renderer.applyRenderState(RenderState.DEFAULT.copyMergedTo(additionalState, mergedRenderState));
    }
  }
}

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

r.applyRenderState(rm.getForcedRenderState());
} else {
  if (techDef.getRenderState() != null) {
    r.applyRenderState(techDef.getRenderState().copyMergedTo(additionalState, mergedRenderState));
  } else {
    r.applyRenderState(RenderState.DEFAULT.copyMergedTo(additionalState, mergedRenderState));

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

ambientColor.setValue(VarType.Vector4, ColorRGBA.Black);
r.applyRenderState(additiveLight);
isSecondLight = false;

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

ambientColor.setValue(VarType.Vector4, ColorRGBA.Black);
r.applyRenderState(ADDITIVE_LIGHT);
isSecondLight = false;

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

rm.getRenderer().applyRenderState(ADDITIVE_LIGHT);
  ambientColor.setValue(VarType.Vector4, ColorRGBA.Black);
} else {

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

if (startIndex != 0) {
  rm.getRenderer().applyRenderState(ADDITIVE_LIGHT);
  ambientColor.setValue(VarType.Vector4, ColorRGBA.Black);
}else{

相关文章