OSDN Git Service

add tangent buffer
authorkobayasi <kobayasi@pscnet.co.jp>
Sat, 6 Jul 2013 18:09:38 +0000 (03:09 +0900)
committerkobayasi <kobayasi@pscnet.co.jp>
Sat, 6 Jul 2013 18:09:38 +0000 (03:09 +0900)
engine/src/core/com/jme3/util/TempVars.java

index 0a314ae..3f0f759 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
- * Copyright (c) 2009-2010 jMonkeyEngine\r
+ * Copyright (c) 2009-2012 jMonkeyEngine\r
  * All rights reserved.\r
  *\r
  * Redistribution and use in source and binary forms, with or without\r
 package com.jme3.util;\r
 \r
 import com.jme3.collision.bih.BIHNode.BIHStackData;\r
-import com.jme3.math.ColorRGBA;\r
-import com.jme3.math.Eigen3f;\r
-import com.jme3.math.Matrix4f;\r
-import com.jme3.math.Matrix3f;\r
-import com.jme3.math.Plane;\r
-import com.jme3.math.Quaternion;\r
-import com.jme3.math.Triangle;\r
-import com.jme3.math.Vector2f;\r
-import com.jme3.math.Vector3f;\r
-import com.jme3.math.Vector4f;\r
+import com.jme3.math.*;\r
 import com.jme3.scene.Spatial;\r
 import java.nio.FloatBuffer;\r
 import java.nio.IntBuffer;\r
@@ -157,6 +148,8 @@ public class TempVars {
      */\r
     public final float[] skinPositions = new float[512 * 3];\r
     public final float[] skinNormals = new float[512 * 3];\r
+     //tangent buffer as 4 components by elements\r
+    public final float[] skinTangents = new float[512 * 4];\r
     /**\r
      * Fetching triangle from mesh\r
      */\r