small_models = CCModel.parseObjModels(MekanismUtils.getResource(ResourceType.MODEL, "transmitter_small.obj"), 7, null);
for(Map.Entry<String, CCModel> e : small_models.entrySet())
{
e.setValue(e.getValue().twoFacedCopy().apply(new Translation(Vector3.center)).shrinkUVs(0.0005));
e.getValue().computeLighting(LightModel.standardLightModel);
}
large_models = CCModel.parseObjModels(MekanismUtils.getResource(ResourceType.MODEL, "transmitter_large.obj"), 7, null);
for(Map.Entry<String, CCModel> e : large_models.entrySet())
{
e.setValue(e.getValue().twoFacedCopy().apply(new Translation(Vector3.center)).shrinkUVs(0.0005));
e.getValue().computeLighting(LightModel.standardLightModel);
}
contents_models = CCModel.parseObjModels(MekanismUtils.getResource(ResourceType.MODEL, "transmitter_contents.obj"), 7, null);
LightModel interiorLightModel = new LightModel()
.setAmbient(new Vector3(0.6, 0.6, 0.6))
.addLight(new Light(new Vector3(0.3, 1, -0.7))
.setDiffuse(new Vector3(0.6, 0.6, 0.6)))
.addLight(new Light(new Vector3(-0.3, 1, 0.7))
.setDiffuse(new Vector3(0.6, 0.6, 0.6)));
for(CCModel c : contents_models.values())
{
c.apply(new Translation(Vector3.center));
c.computeLighting(interiorLightModel);
c.shrinkUVs(0.0005);
}
}