aboutsummaryrefslogtreecommitdiff
path: root/engine/src/core/com/jme3/light/AmbientLight.java
blob: 736cc1269c3c5071fe4d14ce33125cdf6108e0e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.jme3.light;

import com.jme3.scene.Spatial;

/**
 * An ambient light adds a constant color to the scene.
 * <p>
 * Ambient lights are unaffected by the surface normal, and are constant
 * regardless of the model's location. The material's ambient color is
 * multiplied by the ambient light color to get the final ambient color of
 * an object.
 * 
 * @author Kirill Vainer
 */
public class AmbientLight extends Light {

    @Override
    public void computeLastDistance(Spatial owner) {
    }

    @Override
    public Type getType() {
        return Type.Ambient;
    }

}