Class SurfaceOrientation.Builder

  • Enclosing class:
    SurfaceOrientation

    public static class SurfaceOrientation.Builder
    extends java.lang.Object
    Constructs an immutable surface orientation helper. At a minimum, clients must supply a vertex count. They can supply data in any of the following combinations:
    1. normals only (not recommended)
    2. normals + tangents (sign of W determines bitangent orientation)
    3. normals + uvs + positions + indices
    4. positions + indices
    Additionally, the client-side data has the following type constraints:
    1. Normals must be float3
    2. Tangents must be float4
    3. UVs must be float2
    4. Positions must be float3
    5. Triangles must be uint3 or ushort3