From a994da403a0c157a7027b5300cb81b0aad8587e7 Mon Sep 17 00:00:00 2001 From: IMS212 Date: Fri, 29 Dec 2023 06:10:08 -0800 Subject: [PATCH] Fix empty terrain shader --- .../net/coderbot/iris/pipeline/SodiumTerrainPipeline.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/coderbot/iris/pipeline/SodiumTerrainPipeline.java b/src/main/java/net/coderbot/iris/pipeline/SodiumTerrainPipeline.java index b1b854e0a2..c8e445f593 100644 --- a/src/main/java/net/coderbot/iris/pipeline/SodiumTerrainPipeline.java +++ b/src/main/java/net/coderbot/iris/pipeline/SodiumTerrainPipeline.java @@ -135,7 +135,10 @@ float _material_alpha_cutoff(uint material) { void _vert_init() { _vert_position = (vec3(a_PosId.xyz) * 4.8828125E-4f + -8.0f); - _vert_tex_diffuse_coord = (a_TexCoord * 1.52587891E-5f); + + """ + + "_vert_tex_diffuse_coord = (a_TexCoord * " + (1.0f / 32768.0f) + ");" + + """ _vert_tex_light_coord = a_LightCoord; _vert_color = a_Color; _draw_id = (a_PosId.w >> 8u) & 0xffu;