mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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)`
This commit is contained in:
parent
f520a341d5
commit
1df3b74d38
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue