|
@@ -44,7 +44,7 @@ import com.jme3.scene.Geometry;
|
|
|
import com.jme3.scene.Spatial;
|
|
|
import com.jme3.scene.shape.RectangleMesh;
|
|
|
import com.jme3.util.SkyFactory;
|
|
|
-import com.jme3.util.TangentBinormalGenerator;
|
|
|
+import com.jme3.util.mikktspace.MikktspaceTangentGenerator;
|
|
|
|
|
|
public class TestParallaxPBR extends SimpleApplication {
|
|
|
|
|
@@ -80,7 +80,7 @@ public class TestParallaxPBR extends SimpleApplication {
|
|
|
rm.scaleTextureCoordinates(new Vector2f(10, 10));
|
|
|
|
|
|
Geometry floorGeom = new Geometry("floorGeom", rm);
|
|
|
- TangentBinormalGenerator.generate(floorGeom);
|
|
|
+ MikktspaceTangentGenerator.generate(floorGeom);
|
|
|
//floorGeom.setLocalScale(100);
|
|
|
|
|
|
floorGeom.setMaterial(mat);
|
|
@@ -90,7 +90,7 @@ public class TestParallaxPBR extends SimpleApplication {
|
|
|
public void setupSignpost() {
|
|
|
Spatial signpost = assetManager.loadModel("Models/Sign Post/Sign Post.mesh.xml");
|
|
|
Material mat = assetManager.loadMaterial("Models/Sign Post/Sign Post.j3m");
|
|
|
- TangentBinormalGenerator.generate(signpost);
|
|
|
+ MikktspaceTangentGenerator.generate(signpost);
|
|
|
signpost.setMaterial(mat);
|
|
|
signpost.rotate(0, FastMath.HALF_PI, 0);
|
|
|
signpost.setLocalTranslation(12, 23.5f, 30);
|