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
					
				@ -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 New Issue
	
	Block a user