We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30cda23 commit 59b52fcCopy full SHA for 59b52fc
crates/bevy_pbr/src/render/pbr_fragment.wgsl
@@ -153,7 +153,7 @@ fn pbr_input_from_standard_material(
153
var emissive: vec4<f32> = pbr_bindings::material.emissive;
154
#ifdef VERTEX_UVS
155
if ((pbr_bindings::material.flags & pbr_types::STANDARD_MATERIAL_FLAGS_EMISSIVE_TEXTURE_BIT) != 0u) {
156
- emissive = vec4<f32>(pbr_functions::sample_texture(
+ emissive = vec4<f32>(emissive.rgb * pbr_functions::sample_texture(
157
pbr_bindings::emissive_texture,
158
pbr_bindings::emissive_sampler,
159
uv,
0 commit comments