mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-21 12:24:22 +01:00
Fixed particle textures
This commit is contained in:
parent
ca787254f2
commit
e8dc6af654
1 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,6 @@ package com.minelittlepony.unicopia.client.particle;
|
||||||
import com.mojang.blaze3d.platform.GlStateManager;
|
import com.mojang.blaze3d.platform.GlStateManager;
|
||||||
import com.mojang.blaze3d.systems.RenderSystem;
|
import com.mojang.blaze3d.systems.RenderSystem;
|
||||||
|
|
||||||
import net.minecraft.client.MinecraftClient;
|
|
||||||
import net.minecraft.client.particle.Particle;
|
import net.minecraft.client.particle.Particle;
|
||||||
import net.minecraft.client.particle.ParticleTextureSheet;
|
import net.minecraft.client.particle.ParticleTextureSheet;
|
||||||
import net.minecraft.client.render.BufferBuilder;
|
import net.minecraft.client.render.BufferBuilder;
|
||||||
|
@ -60,7 +59,7 @@ public abstract class AbstractBillboardParticle extends Particle {
|
||||||
protected abstract void renderQuads(Tessellator te, BufferBuilder buffer, float x, float y, float z, float tickDelta);
|
protected abstract void renderQuads(Tessellator te, BufferBuilder buffer, float x, float y, float z, float tickDelta);
|
||||||
|
|
||||||
protected void bindTexture(Identifier texture) {
|
protected void bindTexture(Identifier texture) {
|
||||||
MinecraftClient.getInstance().getTextureManager().bindTexture(texture);
|
RenderSystem.setShaderTexture(0, texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void renderQuad(Tessellator te, BufferBuilder buffer, Vec3f[] corners, float alpha, float tickDelta) {
|
protected void renderQuad(Tessellator te, BufferBuilder buffer, Vec3f[] corners, float alpha, float tickDelta) {
|
||||||
|
|
Loading…
Reference in a new issue