OSDN Git Service

add BindPoseTangent, HWBoneWeight to VertexBuffer.Type (but not implemented yet).
authorkobayasi <kobayasi@pscnet.co.jp>
Sat, 6 Jul 2013 06:12:12 +0000 (15:12 +0900)
committerkobayasi <kobayasi@pscnet.co.jp>
Sat, 6 Jul 2013 06:12:12 +0000 (15:12 +0900)
engine/src/core/com/jme3/scene/VertexBuffer.java

index 83d7125..91b2d1c 100644 (file)
@@ -190,6 +190,28 @@ public class VertexBuffer extends NativeObject implements Savable, Cloneable {
          * Texture coordinate #8
          */
         TexCoord8,
+        
+        /** 
+         * Initial vertex tangents, used with animation.
+         * Should have the same format and size as {@link Type#Tangent}.
+         * If used with software skinning, the usage should be 
+         * {@link Usage#CpuOnly}, and the buffer should be allocated
+         * on the heap.
+         */
+        BindPoseTangent,
+        
+        /** 
+         * Bone weights, used with animation (4 floats).
+         * for Hardware Skinning only
+         */
+        HWBoneWeight,
+
+        /** 
+         * Bone indices, used with animation (4 ubytes).
+         * for Hardware Skinning only
+         * either an int or float buffer due to shader attribute types restrictions.
+         */
+        HWBoneIndex,
     }
 
     /**