Use texture() instead of texture2D() in bloomExtract15 and bloomFinal15

This commit is contained in:
Riccardo Balbo 2016-07-19 12:15:55 +02:00 committed by Nehon
parent e4a8b8d91c
commit c92009a40a
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ void main(){
#endif #endif
#ifdef HAS_GLOWMAP #ifdef HAS_GLOWMAP
vec4 glowColor = texture2D( m_GlowMap, texCoord ); vec4 glowColor = texture( m_GlowMap, texCoord );
glowColor = pow(glowColor, vec4(m_ExposurePow)); glowColor = pow(glowColor, vec4(m_ExposurePow));
color += glowColor; color += glowColor;
#endif #endif

View File

@ -10,7 +10,7 @@ out vec4 fragColor;
void main(){ void main(){
vec4 colorRes = getColor(m_Texture,texCoord); vec4 colorRes = getColor(m_Texture,texCoord);
vec4 bloom = texture2D(m_BloomTex, texCoord); vec4 bloom = texture(m_BloomTex, texCoord);
fragColor = bloom * m_BloomIntensity + colorRes; fragColor = bloom * m_BloomIntensity + colorRes;
} }