lightFace

static Direction lightFace(QuadView quad)

Identifies the face to which the quad is most closely aligned.This mimics the value that getFace returns, and isused in the vanilla renderer for all diffuse lighting.

Derived from the quad face normal and expects convex quads with all points co-planar.

Sources

jvm source
Link copied to clipboard