Skip to content

Commit 3f293ed

Browse files
committed
Bind light texture on terrain rendering
1 parent a2a2ee8 commit 3f293ed

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/net/vulkanmod/render/chunk/WorldRenderer.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,11 @@ public void renderSectionLayer(TerrainRenderType renderType, double camX, double
345345
renderer.bindGraphicsPipeline(pipeline);
346346

347347
TextureManager textureManager = Minecraft.getInstance().getTextureManager();
348-
AbstractTexture abstractTexture = textureManager.getTexture(TextureAtlas.LOCATION_BLOCKS);
349-
abstractTexture.setUseMipmaps(true);
350-
var texView = abstractTexture.getTextureView();
351-
RenderSystem.setShaderTexture(0, texView);
348+
AbstractTexture blockAtlasTexture = textureManager.getTexture(TextureAtlas.LOCATION_BLOCKS);
349+
blockAtlasTexture.setUseMipmaps(true);
350+
351+
RenderSystem.setShaderTexture(0, blockAtlasTexture.getTextureView());
352+
RenderSystem.setShaderTexture(2, Minecraft.getInstance().gameRenderer.lightTexture().getTextureView());
352353

353354
VTextureSelector.bindShaderTextures(pipeline);
354355

0 commit comments

Comments
 (0)