Class MikktspaceTangentGenerator

java.lang.Object
com.jme3.util.mikktspace.MikktspaceTangentGenerator

public class MikktspaceTangentGenerator extends Object
Mikktspace is a common standard for tangent space used across many 3D software. This is the Java translation of the mikktspace generator made by Morten S. Mikkelsen C Source code can be found here https://developer.blender.org/diffusion/B/browse/master/intern/mikktspace/mikktspace.c https://developer.blender.org/diffusion/B/browse/master/intern/mikktspace/mikktspace.h Usage is : MikktspaceTangentGenerator.generate(spatial);
  • Method Details

    • generate

      public static void generate(Spatial s)
    • generate

      public static void generate(Mesh mesh)
    • genTangSpaceDefault

      public static boolean genTangSpaceDefault(MikkTSpaceContext mikkTSpace)
    • genTangSpace

      public static boolean genTangSpace(MikkTSpaceContext mikkTSpace, float angularThreshold)