Skip to content

Commit

Permalink
Mario Kart 8 Deluxe: Some silly WebGPU shader fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
magcius committed Nov 24, 2024
1 parent e3d19bb commit ab3cf28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MarioKart8Deluxe/Render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void main() {
if (v !== undefined) {
return v;
} else {
return glslGenerateFloat(fallback);
return '' + fallback;
}
}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ab3cf28

Please sign in to comment.