packNormal

static int packNormal(float x, float y, float z, float w)

Stores a normal plus an extra value as a quartet of signed bytes.This is the same normal format that vanilla item rendering expects.The extra value is for use by shaders.

static int packNormal(Vec3f normal, float w)

Version of packNormal that accepts a vector type.