         g_finalColor.rgb = vec3(ao);
     #endif
 
-    #ifdef DEBUG_EMISSIVE
-        g_finalColor.rgb = f_emissive; //LINEARtoSRGB(f_emissive).rgb;
-    #endif
-
     #ifdef DEBUG_F0
         g_finalColor.rgb = materialInfo.f0;
     #endif
 
+    #ifdef DEBUG_EMISSIVE
+        g_finalColor.rgb = f_emissive;
+    #endif
+
     #ifdef DEBUG_FSPECULAR
         g_finalColor.rgb = f_specular;
     #endif

        g_finalColor.rgb = f_diffuse;
    #endif

    #ifdef DEBUG_ALPHA
        g_finalColor.rgb = vec3(baseColor.a);
    #endif

    #endif

    return diffuseLight * diffuseColor;
}

// https://github.com/KhronosGroup/glTF/blob/master/extensions/2.0/Khronos/KHR_lights_punctual/README.md#range-property
