public void remove() { LightList.this.remove(--index); } };
/** * Removes the given light from the LightList. * * @param l the light to remove */ public void remove(Light l){ for (int i = 0; i < listSize; i++){ if (list[i] == l){ remove(i); return; } } }
/** * <code>removeLight</code> removes the given light from the Spatial. * * @param light The light to remove. * @see Spatial#addLight(com.jme3.light.Light) */ public void removeLight(Light light) { localLights.remove(light); setLightListRefresh(); }
protected void extractIndirectLights(LightList lightList, boolean removeLights) { ambientLightColor.set(0, 0, 0, 1); for (int j = 0; j < lightList.size(); j++) { Light l = lightList.get(j); if (l instanceof AmbientLight) { ambientLightColor.addLocal(l.getColor()); if(removeLights){ lightList.remove(l); j--; } } if (l instanceof LightProbe) { lightProbes.add((LightProbe) l); if(removeLights){ lightList.remove(l); j--; } } } ambientLightColor.a = 1.0f; } }
protected static ColorRGBA getAmbientColor(LightList lightList, boolean removeLights, ColorRGBA ambientLightColor) { ambientLightColor.set(0, 0, 0, 1); for (int j = 0; j < lightList.size(); j++) { Light l = lightList.get(j); if (l instanceof AmbientLight) { ambientLightColor.addLocal(l.getColor()); if (removeLights) { lightList.remove(l); } } } ambientLightColor.a = 1.0f; return ambientLightColor; }
/** * Removes the given light from the LightList. * * @param l the light to remove */ public void remove(Light l){ for (int i = 0; i < listSize; i++){ if (list[i] == l){ remove(i); return; } } }
/** * Removes the given light from the LightList. * * @param l the light to remove */ public void remove(Light l){ for (int i = 0; i < listSize; i++){ if (list[i] == l){ remove(i); return; } } }
public void remove() { LightList.this.remove(--index); } };
public void remove() { LightList.this.remove(--index); } };
/** * <code>removeLight</code> removes the given light from the Spatial. * * @param light The light to remove. * @see Spatial#addLight(com.jme3.light.Light) */ public void removeLight(Light light) { localLights.remove(light); setLightListRefresh(); }
/** * <code>removeLight</code> removes the given light from the Spatial. * * @param light The light to remove. * @see Spatial#addLight(com.jme3.light.Light) */ public void removeLight(Light light) { localLights.remove(light); setLightListRefresh(); }
protected LightProbe extractIndirectLights(LightList lightList, boolean removeLights) { ambientLightColor.set(0, 0, 0, 1); LightProbe probe = null; for (int j = 0; j < lightList.size(); j++) { Light l = lightList.get(j); if (l instanceof AmbientLight) { ambientLightColor.addLocal(l.getColor()); if(removeLights){ lightList.remove(l); j--; } } if (l instanceof LightProbe) { probe = (LightProbe)l; if(removeLights){ lightList.remove(l); j--; } } } ambientLightColor.a = 1.0f; return probe; } }
protected static ColorRGBA getAmbientColor(LightList lightList, boolean removeLights, ColorRGBA ambientLightColor) { ambientLightColor.set(0, 0, 0, 1); for (int j = 0; j < lightList.size(); j++) { Light l = lightList.get(j); if (l instanceof AmbientLight) { ambientLightColor.addLocal(l.getColor()); if (removeLights) { lightList.remove(l); } } } ambientLightColor.a = 1.0f; return ambientLightColor; }