mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-08 18:54:44 +00:00
渲染问题
This commit is contained in:
1 parent
a6533ef106
commit
dedd11eb24
2 files changed
+14
No files matched your search
@@ -111,6 +111,13 @@ public class TexRender extends TextureRender {
|
||||
|
||||
@Override
|
||||
public void drawPic(float x, float y, float width, float height, HudPosType dir, float alpha) {
|
||||
RenderSystem.setShaderTexture(0, sourceTexture.getId());
|
||||
RenderSystem.setShader(GameRenderer::getPositionTexColorShader);
|
||||
|
||||
RenderSystem.depthMask(false);
|
||||
RenderSystem.enableBlend();
|
||||
RenderSystem.depthFunc(GL30.GL_ALWAYS);
|
||||
|
||||
Point2f point = AllMusicHud.getPos(width, height, x, y, dir);
|
||||
|
||||
float w1 = width / 2;
|
||||
|
||||
@@ -111,6 +111,13 @@ public class TexRender extends TextureRender {
|
||||
|
||||
@Override
|
||||
public void drawPic(float x, float y, float width, float height, HudPosType dir, float alpha) {
|
||||
RenderSystem.setShaderTexture(0, sourceTexture.getId());
|
||||
RenderSystem.setShader(GameRenderer::getPositionTexColorShader);
|
||||
|
||||
RenderSystem.depthMask(false);
|
||||
RenderSystem.enableBlend();
|
||||
RenderSystem.depthFunc(GL30.GL_ALWAYS);
|
||||
|
||||
Point2f point = AllMusicHud.getPos(width, height, x, y, dir);
|
||||
|
||||
float w1 = width / 2;
|
||||
|
||||
Reference in new issue
Block a user