From 59b52fc94ec6aed72081856d3606e6754fbf503c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 6 May 2024 15:06:10 -0500 Subject: [PATCH] Modulate the emissive texture by the emissive color again. (#13251) Fixes a regression introduced by #13031. --- crates/bevy_pbr/src/render/pbr_fragment.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_pbr/src/render/pbr_fragment.wgsl b/crates/bevy_pbr/src/render/pbr_fragment.wgsl index 7a90079994..6ff31260f7 100644 --- a/crates/bevy_pbr/src/render/pbr_fragment.wgsl +++ b/crates/bevy_pbr/src/render/pbr_fragment.wgsl @@ -153,7 +153,7 @@ fn pbr_input_from_standard_material( var emissive: vec4 = pbr_bindings::material.emissive; #ifdef VERTEX_UVS if ((pbr_bindings::material.flags & pbr_types::STANDARD_MATERIAL_FLAGS_EMISSIVE_TEXTURE_BIT) != 0u) { - emissive = vec4(pbr_functions::sample_texture( + emissive = vec4(emissive.rgb * pbr_functions::sample_texture( pbr_bindings::emissive_texture, pbr_bindings::emissive_sampler, uv,