From ab3cf28dfd41bf2adcf38efececd525f68232a29 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 23 Nov 2024 16:28:40 -0800 Subject: [PATCH] Mario Kart 8 Deluxe: Some silly WebGPU shader fixes --- src/MarioKart8Deluxe/Render.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MarioKart8Deluxe/Render.ts b/src/MarioKart8Deluxe/Render.ts index 3065a9ab5..a13217274 100644 --- a/src/MarioKart8Deluxe/Render.ts +++ b/src/MarioKart8Deluxe/Render.ts @@ -280,7 +280,7 @@ void main() { if (v !== undefined) { return v; } else { - return glslGenerateFloat(fallback); + return '' + fallback; } } @@ -810,7 +810,7 @@ void main() { vec3 t_Transmission = u_TransmissionColorAndIntensity.rgb * u_TransmissionColorAndIntensity.a; if (enable_opa_trans_tex) { vec2 t_TransTexCoord = SelectTexCoord(${this.shaderOptionInt('texcoord_select_transmitt')}); - t_Transmission *= texture(u_TextureTransmission, t_TransTexCoord).rgb; + t_Transmission *= texture(SAMPLER_2D(u_TextureTransmission), t_TransTexCoord).rgb; } if (enable_opa_trans_albedo)