From 1df3b74d3854a39aebd84e5a4c462b547519ff3a Mon Sep 17 00:00:00 2001 From: Jakob Hellermann Date: Sat, 3 Apr 2021 22:51:52 +0000 Subject: [PATCH] fix attempt to modify emissive uniform (#1771) Previously loading the boom box gltf file panic'd with `ERROR: 0:335: 'assign' : l-value required "anon@7" (can't modify a uniform)` --- crates/bevy_pbr/src/render_graph/pbr_pipeline/pbr.frag | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_pbr/src/render_graph/pbr_pipeline/pbr.frag b/crates/bevy_pbr/src/render_graph/pbr_pipeline/pbr.frag index 380332e79c..bb42cd2300 100644 --- a/crates/bevy_pbr/src/render_graph/pbr_pipeline/pbr.frag +++ b/crates/bevy_pbr/src/render_graph/pbr_pipeline/pbr.frag @@ -326,6 +326,7 @@ void main() { # endif # ifdef STANDARDMATERIAL_EMISSIVE_TEXTURE + vec4 emissive = emissive; // TODO use .a for exposure compensation in HDR emissive.rgb *= texture(sampler2D(StandardMaterial_emissive_texture, StandardMaterial_emissive_texture_sampler), v_Uv).rgb; # endif