From 27a97f119a9b679b66296cabf9564c1020e87cb6 Mon Sep 17 00:00:00 2001 From: kobayasi Date: Sun, 7 Jul 2013 03:09:38 +0900 Subject: [PATCH] add tangent buffer --- engine/src/core/com/jme3/util/TempVars.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/engine/src/core/com/jme3/util/TempVars.java b/engine/src/core/com/jme3/util/TempVars.java index 0a314aeac..3f0f7596d 100644 --- a/engine/src/core/com/jme3/util/TempVars.java +++ b/engine/src/core/com/jme3/util/TempVars.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2010 jMonkeyEngine + * Copyright (c) 2009-2012 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -32,16 +32,7 @@ package com.jme3.util; import com.jme3.collision.bih.BIHNode.BIHStackData; -import com.jme3.math.ColorRGBA; -import com.jme3.math.Eigen3f; -import com.jme3.math.Matrix4f; -import com.jme3.math.Matrix3f; -import com.jme3.math.Plane; -import com.jme3.math.Quaternion; -import com.jme3.math.Triangle; -import com.jme3.math.Vector2f; -import com.jme3.math.Vector3f; -import com.jme3.math.Vector4f; +import com.jme3.math.*; import com.jme3.scene.Spatial; import java.nio.FloatBuffer; import java.nio.IntBuffer; @@ -157,6 +148,8 @@ public class TempVars { */ public final float[] skinPositions = new float[512 * 3]; public final float[] skinNormals = new float[512 * 3]; + //tangent buffer as 4 components by elements + public final float[] skinTangents = new float[512 * 4]; /** * Fetching triangle from mesh */ -- 2.11.0