-
public class SurfaceOrientation.BuilderConstructs 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
- Normals must be float3
- Tangents must be float4
- UVs must be float2
- Positions must be float3
- Triangles must be uint3 or ushort3
-
-
Method Summary
Modifier and Type Method Description SurfaceOrientation.BuildervertexCount(@IntRange(from = 1) int vertexCount)SurfaceOrientation.Buildernormals(@NonNull() Buffer buffer)SurfaceOrientation.Buildertangents(@NonNull() Buffer buffer)SurfaceOrientation.Builderuvs(@NonNull() Buffer buffer)SurfaceOrientation.Builderpositions(@NonNull() Buffer buffer)SurfaceOrientation.BuildertriangleCount(int triangleCount)SurfaceOrientation.Buildertriangles_uint16(@NonNull() Buffer buffer)SurfaceOrientation.Buildertriangles_uint32(@NonNull() Buffer buffer)SurfaceOrientationbuild()Consumes the input data, produces quaternions, and destroys the native builder. -
-
Method Detail
-
vertexCount
@NonNull() SurfaceOrientation.Builder vertexCount(@IntRange(from = 1) int vertexCount)
-
normals
@NonNull() SurfaceOrientation.Builder normals(@NonNull() Buffer buffer)
-
tangents
@NonNull() SurfaceOrientation.Builder tangents(@NonNull() Buffer buffer)
-
uvs
@NonNull() SurfaceOrientation.Builder uvs(@NonNull() Buffer buffer)
-
positions
@NonNull() SurfaceOrientation.Builder positions(@NonNull() Buffer buffer)
-
triangleCount
@NonNull() SurfaceOrientation.Builder triangleCount(int triangleCount)
-
triangles_uint16
@NonNull() SurfaceOrientation.Builder triangles_uint16(@NonNull() Buffer buffer)
-
triangles_uint32
@NonNull() SurfaceOrientation.Builder triangles_uint32(@NonNull() Buffer buffer)
-
build
@NonNull() SurfaceOrientation build()
Consumes the input data, produces quaternions, and destroys the native builder.
-
-
-
-