aboutsummaryrefslogtreecommitdiff
path: root/engine/src/core/com/jme3/light/AmbientLight.java
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/core/com/jme3/light/AmbientLight.java')
-rw-r--r--engine/src/core/com/jme3/light/AmbientLight.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/engine/src/core/com/jme3/light/AmbientLight.java b/engine/src/core/com/jme3/light/AmbientLight.java
new file mode 100644
index 0000000..736cc12
--- /dev/null
+++ b/engine/src/core/com/jme3/light/AmbientLight.java
@@ -0,0 +1,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;
+ }
+
+}