Пример #1
0
 public RendererWireBase() {
   transformMap.put(
       ItemCameraTransforms.TransformType.THIRD_PERSON,
       new TRSRTransformation(
           new Vector3f(0, 0, -2.75f / 16),
           TRSRTransformation.quatFromYXZDegrees(new Vector3f(10, -45, 170)),
           new Vector3f(0.375f, 0.375f, 0.375f),
           null));
 }
Пример #2
0
 @Override
 public Pair<IBakedModel, Matrix4f> handlePerspective(
     ItemCameraTransforms.TransformType cameraTransformType) {
   this.transform = cameraTransformType;
   return new ImmutablePair<IBakedModel, Matrix4f>(
       this,
       transformMap.containsKey(cameraTransformType)
           ? transformMap.get(cameraTransformType).getMatrix()
           : TRSRTransformation.identity().getMatrix());
 }