Че делать если таргет ЕСП очень тусклый а у типа в теме очень яркий, говорили надо установить шейдера, я не умею, кто сможет помогите пожалуйста, дс : zmei_777
@Subscribe
private void onDisplay(EventDisplay e) {
if (e.getType() != EventDisplay.Type.PRE) {
return;
}
if (currentTarget != null && !alpha.finished(Direction.BACKWARDS) && type.is("Клиент")) {
double sin = Math.sin(System.currentTimeMillis() / 1350.0);
Vector3d interpolated = currentTarget.getPositon(e.getPartialTicks());
float size = (float) getScale(interpolated, 11.0);
Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + currentTarget.getHeight() / 1.75f, interpolated.z);
GlStateManager.pushMatrix();
GlStateManager.translatef(pos.x, pos.y, 0);
GlStateManager.rotatef((float) sin * 360, 0, 0, 1);
GlStateManager.translatef(-pos.x, -pos.y, 0);
GlStateManager.enableBlend();
GlStateManager.blendFunc(GL_SRC_ALPHA, GL_ONE);
int alpha = (int) this.alpha.getOutput();
DisplayUtils.drawImageAlpha(new ResourceLocation("negr/images/target.png"), pos.x - size / 2f, pos.y - size / 2f, size, size, new Vector4i(
ColorUtils.setAlpha(HUD.getColor(0, 1), alpha),
ColorUtils.setAlpha(HUD.getColor(90, 1), alpha),
ColorUtils.setAlpha(HUD.getColor(180, 1), alpha),
ColorUtils.setAlpha(HUD.getColor(270, 1), alpha)
));
на