Re: Several rendering engines in the same plugin
Code: Select all
if (this.sunDirection == null || !Arrays.equals(this.sunDirection, sunDirection)) {
if (this.sunDirection != null) {
try {
// Reinitialize renderer because Yafaray doesn't allow to modify or delete lights
dispose();
finalize();
init();
} catch (IOException ex) {
// Shouldn't happen since first initRenderer call worked
}
}
if (sunDirection [1] > -0.075f) {
...
}
this.sunDirection = sunDirection;
}Code: Select all
this.sunDirection = getSunDirection(this.compass, Camera.convertTimeToTimeZone(this.home.getCamera().getTime(), this.compass.getTimeZone()));