瀏覽代碼

Add new light type 'ambient' to match light.h

Danke Xie 9 年之前
父節點
當前提交
40ee575322
共有 1 個文件被更改,包括 13 次插入2 次删除
  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>