Explorar o código

Merge pull request #690 from dankex/light

Add new light type 'ambient' to match light.h
Kim Kulling %!s(int64=9) %!d(string=hai) anos
pai
achega
916cfb9d53
Modificáronse 1 ficheiros con 13 adicións e 2 borrados
  1. 13 2
      port/jassimp/jassimp/src/jassimp/AiLightType.java

+ 13 - 2
port/jassimp/jassimp/src/jassimp/AiLightType.java

@@ -70,9 +70,20 @@ public enum AiLightType {
      * direction it is pointing to. A good example for a spot light is a light
      * spot in sport arenas.
      */
-    SPOT(0x3);
+    SPOT(0x3),
+
+
+    /**
+     *  The generic light level of the world, including the bounces of all other
+     *  lightsources. <p>
+     *
+     *  Typically, there's at most one ambient light in a scene.
+     *  This light type doesn't have a valid position, direction, or
+     *  other properties, just a color.
+     */
+    AMBIENT(0x4);
+
 
-    
     /**
      * Utility method for converting from c/c++ based integer enums to java 
      * enums.<p>