Skip to content

Commit

Permalink
Allow use of Emissive color as a multiplier with EmissiveMap in PBRLi…
Browse files Browse the repository at this point in the history
…ghting (#1979)
  • Loading branch information
Ali-RS committed Mar 11, 2023
1 parent a0c2c5e commit f51681a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ void main(){
#if defined(EMISSIVE) || defined (EMISSIVEMAP)
#ifdef EMISSIVEMAP
vec4 emissive = texture2D(m_EmissiveMap, newTexCoord);
#ifdef EMISSIVE
emissive *= m_Emissive;
#endif
#else
vec4 emissive = m_Emissive;
#endif
Expand Down

0 comments on commit f51681a

Please sign in to comment.