Bläddra i källkod

Allow use of Emissive color as a multiplier with EmissiveMap in PBRLighting (#1979)

Ali-RS 2 år sedan
förälder
incheckning
f51681a00c
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.frag

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

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