ソースを参照

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

Riccardo Balbo 9 年 前
コミット
62d92d75ca

+ 1 - 1
jme3-effects/src/main/resources/Common/MatDefs/Post/bloomExtract15.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

+ 1 - 1
jme3-effects/src/main/resources/Common/MatDefs/Post/bloomFinal15.frag

@@ -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;
 }