Explorar o código

Parallax mapping : changed calls to texture2DLod to texture2D as it fails on mac since it shouldn't be used in a frag shader

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9384 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om %!s(int64=13) %!d(string=hai) anos
pai
achega
3f5fd9f6c3
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      engine/src/core-data/Common/ShaderLib/Parallax.glsllib

+ 2 - 2
engine/src/core-data/Common/ShaderLib/Parallax.glsllib

@@ -36,10 +36,10 @@
            
            #ifdef NORMALMAP_PARALLAX
                //parallax map is stored in the alpha channel of the normal map         
-               fCurrHeight = texture2DLod( parallaxMap, vTexCurrentOffset,1.0).a; 
+               fCurrHeight = texture2D( parallaxMap, vTexCurrentOffset).a; 
            #else
                //parallax map is a texture
-               fCurrHeight = texture2DLod( parallaxMap, vTexCurrentOffset,1.0).r;                
+               fCurrHeight = texture2D( parallaxMap, vTexCurrentOffset).r;                
            #endif
            
             fCurrentBound -= fStepSize;