Main repository of MikuMikuStudio
Revisión | 310795caf516205820d1443134847d0eb41ee3cc (tree) |
---|---|
Tiempo | 2013-07-06 15:12:12 |
Autor | kobayasi <kobayasi@pscn...> |
Commiter | kobayasi |
add BindPoseTangent, HWBoneWeight to VertexBuffer.Type (but not implemented yet).
@@ -190,6 +190,28 @@ public class VertexBuffer extends NativeObject implements Savable, Cloneable { | ||
190 | 190 | * Texture coordinate #8 |
191 | 191 | */ |
192 | 192 | TexCoord8, |
193 | + | |
194 | + /** | |
195 | + * Initial vertex tangents, used with animation. | |
196 | + * Should have the same format and size as {@link Type#Tangent}. | |
197 | + * If used with software skinning, the usage should be | |
198 | + * {@link Usage#CpuOnly}, and the buffer should be allocated | |
199 | + * on the heap. | |
200 | + */ | |
201 | + BindPoseTangent, | |
202 | + | |
203 | + /** | |
204 | + * Bone weights, used with animation (4 floats). | |
205 | + * for Hardware Skinning only | |
206 | + */ | |
207 | + HWBoneWeight, | |
208 | + | |
209 | + /** | |
210 | + * Bone indices, used with animation (4 ubytes). | |
211 | + * for Hardware Skinning only | |
212 | + * either an int or float buffer due to shader attribute types restrictions. | |
213 | + */ | |
214 | + HWBoneIndex, | |
193 | 215 | } |
194 | 216 | |
195 | 217 | /** |