use of gaiasky.scenegraph.Particle in project gaiasky by langurmonkey.
the class UpdaterTask method call.
@Override
public Void call() throws Exception {
int size = nodes.size;
for (int i = start; i < size; i += step) {
SceneGraphNode node = nodes.get(i);
float opacity = node instanceof Particle && node.octant != null ? node.octant.opacity : (node instanceof FadeNode ? 1f : node.opacity);
node.update(time, node.parent.translation, camera, opacity);
}
return null;
}
Aggregations