瀏覽代碼

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 13 年之前
父節點
當前提交
3f5fd9f6c3
共有 1 個文件被更改,包括 2 次插入2 次删除
  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
            #ifdef NORMALMAP_PARALLAX
                //parallax map is stored in the alpha channel of the normal map         
                //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
            #else
                //parallax map is a texture
                //parallax map is a texture
-               fCurrHeight = texture2DLod( parallaxMap, vTexCurrentOffset,1.0).r;                
+               fCurrHeight = texture2D( parallaxMap, vTexCurrentOffset).r;                
            #endif
            #endif
            
            
             fCurrentBound -= fStepSize;
             fCurrentBound -= fStepSize;