本文整理了Java中com.jme3.renderer.Renderer.setBackgroundColor
方法的一些代码示例,展示了Renderer.setBackgroundColor
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Renderer.setBackgroundColor
方法的具体详情如下:
包路径:com.jme3.renderer.Renderer
类名称:Renderer
方法名:setBackgroundColor
[英]Sets the background (aka clear) color.
[中]设置背景(也称为清晰)颜色。
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
/**
* Used to reset cubeField
*/
private void gameReset(){
Score = 0;
lowCap = 10;
colorInt = 0;
highCap = 40;
difficulty = highCap;
for (Geometry cube : cubeField){
cube.removeFromParent();
}
cubeField.clear();
if (fcube != null){
fcube.removeFromParent();
}
fcube = createFirstCube();
obstacleColors.clear();
obstacleColors.add(ColorRGBA.Orange);
obstacleColors.add(ColorRGBA.Red);
obstacleColors.add(ColorRGBA.Yellow);
renderer.setBackgroundColor(ColorRGBA.White);
speed = lowCap / 400f;
coreTime = 20.0f;
coreTime2 = 10.0f;
diffHelp=lowCap;
player.setLocalTranslation(0,0,0);
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
solidBox = false;
obstacleColors.add(ColorRGBA.Green);
renderer.setBackgroundColor(ColorRGBA.Black);
playerMaterial.setColor("Color", ColorRGBA.White);
floorMaterial.setColor("Color", ColorRGBA.Black);
obstacleColors.set(0, ColorRGBA.Black);
solidBox = true;
renderer.setBackgroundColor(ColorRGBA.White);
playerMaterial.setColor("Color", ColorRGBA.Gray);
floorMaterial.setColor("Color", ColorRGBA.LightGray);
obstacleColors.set(0, ColorRGBA.Cyan);
obstacleColors.add(ColorRGBA.Magenta);
renderer.setBackgroundColor(ColorRGBA.Gray);
floorMaterial.setColor("Color", ColorRGBA.Gray);
playerMaterial.setColor("Color", ColorRGBA.White);
case 5:
obstacleColors.remove(0);
renderer.setBackgroundColor(ColorRGBA.Pink);
solidBox = false;
playerMaterial.setColor("Color", ColorRGBA.White);
obstacleColors.set(0, ColorRGBA.White);
solidBox = true;
renderer.setBackgroundColor(ColorRGBA.Black);
playerMaterial.setColor("Color", ColorRGBA.Gray);
floorMaterial.setColor("Color", ColorRGBA.LightGray);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Override
protected void postQueue(RenderQueue queue) {
if (glowMode != GlowMode.Scene) {
renderManager.getRenderer().setBackgroundColor(ColorRGBA.BlackNoAlpha);
renderManager.getRenderer().setFrameBuffer(preGlowPass.getRenderFrameBuffer());
renderManager.getRenderer().clearBuffers(true, true, true);
renderManager.setForcedTechnique("Glow");
renderManager.renderViewPortQueues(viewPort, false);
renderManager.setForcedTechnique(null);
renderManager.getRenderer().setFrameBuffer(viewPort.getOutputFrameBuffer());
}
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
if (vp.isClearDepth() || vp.isClearColor() || vp.isClearStencil()) {
if (vp.isClearColor()) {
renderer.setBackgroundColor(vp.getBackgroundColor());
代码示例来源:origin: info.projectkyoto/mms-engine
/**
* Used to reset cubeField
*/
private void gameReset(){
Score = 0;
lowCap = 10;
colorInt = 0;
highCap = 40;
difficulty = highCap;
for (Geometry cube : cubeField){
cube.removeFromParent();
}
cubeField.clear();
if (fcube != null){
fcube.removeFromParent();
}
fcube = createFirstCube();
obstacleColors.clear();
obstacleColors.add(ColorRGBA.Orange);
obstacleColors.add(ColorRGBA.Red);
obstacleColors.add(ColorRGBA.Yellow);
renderer.setBackgroundColor(ColorRGBA.White);
speed = lowCap / 400f;
coreTime = 20.0f;
coreTime2 = 10.0f;
diffHelp=lowCap;
player.setLocalTranslation(0,0,0);
}
代码示例来源:origin: info.projectkyoto/mms-engine
solidBox = false;
obstacleColors.add(ColorRGBA.Green);
renderer.setBackgroundColor(ColorRGBA.Black);
playerMaterial.setColor("Color", ColorRGBA.White);
floorMaterial.setColor("Color", ColorRGBA.Black);
obstacleColors.set(0, ColorRGBA.Black);
solidBox = true;
renderer.setBackgroundColor(ColorRGBA.White);
playerMaterial.setColor("Color", ColorRGBA.Gray);
floorMaterial.setColor("Color", ColorRGBA.LightGray);
obstacleColors.set(0, ColorRGBA.Cyan);
obstacleColors.add(ColorRGBA.Magenta);
renderer.setBackgroundColor(ColorRGBA.Gray);
floorMaterial.setColor("Color", ColorRGBA.Gray);
playerMaterial.setColor("Color", ColorRGBA.White);
case 5:
obstacleColors.remove(0);
renderer.setBackgroundColor(ColorRGBA.Pink);
solidBox = false;
playerMaterial.setColor("Color", ColorRGBA.White);
obstacleColors.set(0, ColorRGBA.White);
solidBox = true;
renderer.setBackgroundColor(ColorRGBA.Black);
playerMaterial.setColor("Color", ColorRGBA.Gray);
floorMaterial.setColor("Color", ColorRGBA.LightGray);
代码示例来源:origin: org.jmonkeyengine/jme3-effects
@Override
protected void postQueue(RenderQueue queue) {
if (glowMode != GlowMode.Scene) {
renderManager.getRenderer().setBackgroundColor(ColorRGBA.BlackNoAlpha);
renderManager.getRenderer().setFrameBuffer(preGlowPass.getRenderFrameBuffer());
renderManager.getRenderer().clearBuffers(true, true, true);
renderManager.setForcedTechnique("Glow");
renderManager.renderViewPortQueues(viewPort, false);
renderManager.setForcedTechnique(null);
renderManager.getRenderer().setFrameBuffer(viewPort.getOutputFrameBuffer());
}
}
代码示例来源:origin: info.projectkyoto/mms-engine
@Override
protected void postQueue(RenderQueue queue) {
if (glowMode != GlowMode.Scene) {
renderManager.getRenderer().setBackgroundColor(ColorRGBA.BlackNoAlpha);
renderManager.getRenderer().setFrameBuffer(preGlowPass.getRenderFrameBuffer());
renderManager.getRenderer().clearBuffers(true, true, true);
renderManager.setForcedTechnique("Glow");
renderManager.renderViewPortQueues(viewPort, false);
renderManager.setForcedTechnique(null);
renderManager.getRenderer().setFrameBuffer(viewPort.getOutputFrameBuffer());
}
}
代码示例来源:origin: info.projectkyoto/mms-engine
if (vp.isClearDepth() || vp.isClearColor() || vp.isClearStencil()) {
if (vp.isClearColor()) {
renderer.setBackgroundColor(vp.getBackgroundColor());
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-effects
@Override
protected void postQueue(RenderQueue queue) {
if (glowMode != GlowMode.Scene) {
renderManager.getRenderer().setBackgroundColor(ColorRGBA.BlackNoAlpha);
renderManager.getRenderer().setFrameBuffer(preGlowPass.getRenderFrameBuffer());
renderManager.getRenderer().clearBuffers(true, true, true);
renderManager.setForcedTechnique("Glow");
renderManager.renderViewPortQueues(viewPort, false);
renderManager.setForcedTechnique(null);
renderManager.getRenderer().setFrameBuffer(viewPort.getOutputFrameBuffer());
}
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
if (vp.isClearDepth() || vp.isClearColor() || vp.isClearStencil()) {
if (vp.isClearColor()) {
renderer.setBackgroundColor(vp.getBackgroundColor());
代码示例来源:origin: org.jmonkeyengine/jme3-dae
public void simpleInitApp()
renderer.setBackgroundColor(ColorRGBA.Gray);
inputManager.addMapping("animate", new KeyTrigger(KeyInput.KEY_1));
inputManager.addListener(new ActionListener()
代码示例来源:origin: org.jmonkeyengine/jme3-dae
@Override
public void simpleInitApp()
renderer.setBackgroundColor(ColorRGBA.Gray);
float[] normals =
内容来源于网络,如有侵权,请联系作者删除!