Package 

Class SurfaceOrientation.Builder


  • 
    public class SurfaceOrientation.Builder
    
                        

    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:

    • normals only (not recommended)
    • normals + tangents (sign of W determines bitangent orientation)
    • normals + uvs + positions + indices
    • positions + indices
    Additionally, the client-side data has the following type constraints:
    • Normals must be float3
    • Tangents must be float4
    • UVs must be float2
    • Positions must be float3
    • Triangles must be uint3 or ushort3