* ToneMap.frag: Fix warning about gl_FragColor when compiling for GLSL 1.5 and higher
This commit is contained in:
parent
71472bbf90
commit
406d244e01
@ -5,6 +5,7 @@ uniform vec3 m_WhitePoint;
|
|||||||
|
|
||||||
#if __VERSION__ >= 150
|
#if __VERSION__ >= 150
|
||||||
in vec2 texCoord;
|
in vec2 texCoord;
|
||||||
|
out vec4 outFragColor;
|
||||||
#else
|
#else
|
||||||
varying vec2 texCoord;
|
varying vec2 texCoord;
|
||||||
#endif
|
#endif
|
||||||
@ -34,5 +35,10 @@ void main() {
|
|||||||
|
|
||||||
vec4 texVal = getColor(m_Texture, texCoord);
|
vec4 texVal = getColor(m_Texture, texCoord);
|
||||||
vec3 toneMapped = ToneMap_Filmic(texVal.rgb, m_WhitePoint);
|
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
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user