Skip to content

Commit 59b52fc

Browse files
authored
Modulate the emissive texture by the emissive color again. (#13251)
Fixes a regression introduced by #13031.
1 parent 30cda23 commit 59b52fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_pbr/src/render/pbr_fragment.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ fn pbr_input_from_standard_material(
153153
var emissive: vec4<f32> = pbr_bindings::material.emissive;
154154
#ifdef VERTEX_UVS
155155
if ((pbr_bindings::material.flags & pbr_types::STANDARD_MATERIAL_FLAGS_EMISSIVE_TEXTURE_BIT) != 0u) {
156-
emissive = vec4<f32>(pbr_functions::sample_texture(
156+
emissive = vec4<f32>(emissive.rgb * pbr_functions::sample_texture(
157157
pbr_bindings::emissive_texture,
158158
pbr_bindings::emissive_sampler,
159159
uv,

0 commit comments

Comments
 (0)