Skip to content

Commit f51681a

Browse files
authored
Allow use of Emissive color as a multiplier with EmissiveMap in PBRLighting (#1979)
1 parent a0c2c5e commit f51681a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.frag

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ void main(){
313313
#if defined(EMISSIVE) || defined (EMISSIVEMAP)
314314
#ifdef EMISSIVEMAP
315315
vec4 emissive = texture2D(m_EmissiveMap, newTexCoord);
316+
#ifdef EMISSIVE
317+
emissive *= m_Emissive;
318+
#endif
316319
#else
317320
vec4 emissive = m_Emissive;
318321
#endif

0 commit comments

Comments
 (0)