mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Modulate the emissive texture by the emissive color again. (#13251)
Fixes a regression introduced by #13031.
This commit is contained in:
parent
30cda2351f
commit
59b52fc94e
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ fn pbr_input_from_standard_material(
|
|||
var emissive: vec4<f32> = pbr_bindings::material.emissive;
|
||||
#ifdef VERTEX_UVS
|
||||
if ((pbr_bindings::material.flags & pbr_types::STANDARD_MATERIAL_FLAGS_EMISSIVE_TEXTURE_BIT) != 0u) {
|
||||
emissive = vec4<f32>(pbr_functions::sample_texture(
|
||||
emissive = vec4<f32>(emissive.rgb * pbr_functions::sample_texture(
|
||||
pbr_bindings::emissive_texture,
|
||||
pbr_bindings::emissive_sampler,
|
||||
uv,
|
||||
|
|
Loading…
Reference in a new issue