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
This commit is contained in:
rem..om 2012-05-13 19:51:57 +00:00
parent 816b082c73
commit 3f5fd9f6c3

View File

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