square

QuadEmitter square(Direction nominalFace, float left, float bottom, float right, float top, float depth)

Helper method to assign vertex coordinates for a square aligned with the given face.Ensures that vertex order is consistent with vanilla convention. (Incorrect order canlead to bad AO lighting unless enhanced lighting logic is available/enabled.)

Square will be parallel to the given face and coplanar with the face (and culled if theface is occluded) if the depth parameter is approximately zero. See CULL_FACE_EPSILON.

All coordinates should be normalized (0-1).

Sources

jvm source
Link copied to clipboard