From 3f5fd9f6c32c85ea9bb5f3b4315cb5b485c5c149 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sun, 13 May 2012 19:51:57 +0000 Subject: [PATCH] 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 --- engine/src/core-data/Common/ShaderLib/Parallax.glsllib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/core-data/Common/ShaderLib/Parallax.glsllib b/engine/src/core-data/Common/ShaderLib/Parallax.glsllib index 61b9d4b8f..15fdea80c 100644 --- a/engine/src/core-data/Common/ShaderLib/Parallax.glsllib +++ b/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;