Main repository of MikuMikuStudio
Revision | 27a97f119a9b679b66296cabf9564c1020e87cb6 (tree) |
---|---|
Time | 2013-07-07 03:09:38 |
Author | kobayasi <kobayasi@pscn...> |
Commiter | kobayasi |
add tangent buffer
@@ -1,5 +1,5 @@ | ||
1 | 1 | /* |
2 | - * Copyright (c) 2009-2010 jMonkeyEngine | |
2 | + * Copyright (c) 2009-2012 jMonkeyEngine | |
3 | 3 | * All rights reserved. |
4 | 4 | * |
5 | 5 | * Redistribution and use in source and binary forms, with or without |
@@ -32,16 +32,7 @@ | ||
32 | 32 | package com.jme3.util; |
33 | 33 | |
34 | 34 | import com.jme3.collision.bih.BIHNode.BIHStackData; |
35 | -import com.jme3.math.ColorRGBA; | |
36 | -import com.jme3.math.Eigen3f; | |
37 | -import com.jme3.math.Matrix4f; | |
38 | -import com.jme3.math.Matrix3f; | |
39 | -import com.jme3.math.Plane; | |
40 | -import com.jme3.math.Quaternion; | |
41 | -import com.jme3.math.Triangle; | |
42 | -import com.jme3.math.Vector2f; | |
43 | -import com.jme3.math.Vector3f; | |
44 | -import com.jme3.math.Vector4f; | |
35 | +import com.jme3.math.*; | |
45 | 36 | import com.jme3.scene.Spatial; |
46 | 37 | import java.nio.FloatBuffer; |
47 | 38 | import java.nio.IntBuffer; |
@@ -157,6 +148,8 @@ public class TempVars { | ||
157 | 148 | */ |
158 | 149 | public final float[] skinPositions = new float[512 * 3]; |
159 | 150 | public final float[] skinNormals = new float[512 * 3]; |
151 | + //tangent buffer as 4 components by elements | |
152 | + public final float[] skinTangents = new float[512 * 4]; | |
160 | 153 | /** |
161 | 154 | * Fetching triangle from mesh |
162 | 155 | */ |