}
public static void renderFluidCuboid(Cuboid6 bound, IIcon tex, double res) {
renderFluidQuad(// bottom
new Vector3(bound.min.x, bound.min.y, bound.min.z), new Vector3(bound.max.x, bound.min.y, bound.min.z), new Vector3(bound.max.x, bound.min.y,
bound.max.z), new Vector3(bound.min.x, bound.min.y, bound.max.z), tex, res);
renderFluidQuad(// top
new Vector3(bound.min.x, bound.max.y, bound.min.z), new Vector3(bound.min.x, bound.max.y, bound.max.z), new Vector3(bound.max.x, bound.max.y,
bound.max.z), new Vector3(bound.max.x, bound.max.y, bound.min.z), tex, res);
renderFluidQuad(// -x
new Vector3(bound.min.x, bound.max.y, bound.min.z), new Vector3(bound.min.x, bound.min.y, bound.min.z), new Vector3(bound.min.x, bound.min.y,
bound.max.z), new Vector3(bound.min.x, bound.max.y, bound.max.z), tex, res);
renderFluidQuad(// +x
new Vector3(bound.max.x, bound.max.y, bound.max.z), new Vector3(bound.max.x, bound.min.y, bound.max.z), new Vector3(bound.max.x, bound.min.y,
bound.min.z), new Vector3(bound.max.x, bound.max.y, bound.min.z), tex, res);
renderFluidQuad(// -z
new Vector3(bound.max.x, bound.max.y, bound.min.z), new Vector3(bound.max.x, bound.min.y, bound.min.z), new Vector3(bound.min.x, bound.min.y,
bound.min.z), new Vector3(bound.min.x, bound.max.y, bound.min.z), tex, res);
renderFluidQuad(// +z
new Vector3(bound.min.x, bound.max.y, bound.max.z), new Vector3(bound.min.x, bound.min.y, bound.max.z), new Vector3(bound.max.x, bound.min.y,
bound.max.z), new Vector3(bound.max.x, bound.max.y, bound.max.z), tex, res);
}