Search in sources :

Example 6 with Vector3f

use of net.modificationstation.stationapi.api.util.math.Vector3f in project StationAPI by ModificationStation.

the class VertexConsumer method normal.

default VertexConsumer normal(Matrix3f matrix, float x, float y, float z) {
    Vector3f vec3f = new Vector3f(x, y, z);
    vec3f.transform(matrix);
    return this.normal(vec3f.getX(), vec3f.getY(), vec3f.getZ());
}
Also used : Vector3f(net.modificationstation.stationapi.api.util.math.Vector3f)

Aggregations

Vector3f (net.modificationstation.stationapi.api.util.math.Vector3f)6 Vec3i (net.minecraft.util.maths.Vec3i)2 Matrix4f (net.modificationstation.stationapi.api.util.math.Matrix4f)2 Vector4f (net.modificationstation.stationapi.api.util.math.Vector4f)2 ModelTransformation (net.modificationstation.stationapi.api.client.render.model.json.ModelTransformation)1 Transformation (net.modificationstation.stationapi.api.client.render.model.json.Transformation)1