Modulate the emissive texture by the emissive color again. (#13251)

Fixes a regression introduced by #13031.
This commit is contained in:
Patrick Walton 2024-05-06 15:06:10 -05:00 committed by GitHub
parent 30cda2351f
commit 59b52fc94e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,