Search in sources :

Example 1 with Particle

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;
}
Also used : Particle(gaiasky.scenegraph.Particle) SceneGraphNode(gaiasky.scenegraph.SceneGraphNode) FadeNode(gaiasky.scenegraph.FadeNode)

Aggregations

FadeNode (gaiasky.scenegraph.FadeNode)1 Particle (gaiasky.scenegraph.Particle)1 SceneGraphNode (gaiasky.scenegraph.SceneGraphNode)1