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

define_list_fix
Riccardo Balbo 8 years ago
parent 201010b6f0
commit 62d92d75ca
  1. 2
      jme3-effects/src/main/resources/Common/MatDefs/Post/bloomExtract15.frag
  2. 2
      jme3-effects/src/main/resources/Common/MatDefs/Post/bloomFinal15.frag

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

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

Loading…
Cancel
Save