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
3.0
rem..om 13 years ago
parent 816b082c73
commit 3f5fd9f6c3
  1. 4
      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;

Loading…
Cancel
Save