diff --git a/jme3-effects/src/main/resources/Common/MatDefs/Post/ToneMap.frag b/jme3-effects/src/main/resources/Common/MatDefs/Post/ToneMap.frag index 98ec5c772..78a844313 100644 --- a/jme3-effects/src/main/resources/Common/MatDefs/Post/ToneMap.frag +++ b/jme3-effects/src/main/resources/Common/MatDefs/Post/ToneMap.frag @@ -5,6 +5,7 @@ uniform vec3 m_WhitePoint; #if __VERSION__ >= 150 in vec2 texCoord; +out vec4 outFragColor; #else varying vec2 texCoord; #endif @@ -34,5 +35,10 @@ void main() { vec4 texVal = getColor(m_Texture, texCoord); vec3 toneMapped = ToneMap_Filmic(texVal.rgb, m_WhitePoint); - gl_FragColor = vec4(toneMapped, texVal.a); + + #if __VERSION__ >= 150 + outFragColor = vec4(toneMapped, texVal.a); + #else + gl_FragColor = vec4(toneMapped, texVal.a); + #endif } \ No newline at end of file