-
public class SurfaceOrientationHelper used to populate
TANGENTSbuffers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSurfaceOrientation.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 longgetNativeObject()intgetVertexCount()voidgetQuatsAsFloat(@NonNull() Buffer buffer)voidgetQuatsAsHalf(@NonNull() Buffer buffer)voidgetQuatsAsShort(@NonNull() Buffer buffer)voiddestroy()-
-
Method Detail
-
getNativeObject
long getNativeObject()
-
getVertexCount
@IntRange(from = 0) int getVertexCount()
-
getQuatsAsFloat
@NonNull() void getQuatsAsFloat(@NonNull() Buffer buffer)
-
getQuatsAsHalf
@NonNull() void getQuatsAsHalf(@NonNull() Buffer buffer)
-
getQuatsAsShort
@NonNull() void getQuatsAsShort(@NonNull() Buffer buffer)
-
destroy
void destroy()
-
-
-
-