本文整理了Java中com.jme3.scene.Geometry.addLight()
方法的一些代码示例,展示了Geometry.addLight()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Geometry.addLight()
方法的具体详情如下:
包路径:com.jme3.scene.Geometry
类名称:Geometry
方法名:addLight
暂无
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Test
public void testAmbientFiltering() {
geom.addLight(new AmbientLight());
checkFilteredLights(1); // Ambient lights must never be filtered
// Test for bounding Sphere
geom.setModelBound(new BoundingSphere(0.5f, Vector3f.ZERO));
checkFilteredLights(1); // Ambient lights must never be filtered
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Test
public void testDirectionalFiltering() {
geom.addLight(new DirectionalLight(Vector3f.UNIT_Y));
checkFilteredLights(1); // Directional lights must never be filtered
// Test for bounding Sphere
geom.setModelBound(new BoundingSphere(0.5f, Vector3f.ZERO));
checkFilteredLights(1); // Directional lights must never be filtered
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
geom1.addLight(childLight);
geom2.addLight(childLight);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
g.addLight(directional);
g.addLight(ambient);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Test
public void testPointFiltering() {
PointLight pl = new PointLight(Vector3f.ZERO);
geom.addLight(pl);
checkFilteredLights(1); // Infinite point lights must never be filtered
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
SpotLight sl = new SpotLight(Vector3f.ZERO, Vector3f.UNIT_Z);
sl.setSpotRange(0);
geom.addLight(sl);
checkFilteredLights(1); // Infinite spot lights are only filtered
代码示例来源:origin: info.projectkyoto/mms-engine
outGeom.setMaterial(inGeom.getMaterial());
for (Light light : inGeom.getWorldLightList()){
outGeom.addLight(light);
代码示例来源:origin: info.projectkyoto/mms-engine
geom.addLight(dl);
geom.addLight(dl2);
geom.updateGeometricState();
内容来源于网络,如有侵权,请联系作者删除!