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:
Jakob Hellermann 2021-04-03 22:51:52 +00:00
parent f520a341d5
commit 1df3b74d38

View file

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