diff --git a/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Environment/envMapping100.frag b/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Environment/envMapping100.frag index 9e4a7bc9e..302461a5c 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Environment/envMapping100.frag +++ b/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Environment/envMapping100.frag @@ -4,5 +4,5 @@ void main(){ //@input samplerCube cubeMap the cube map //@output vec4 color the output color - color = textureCube(cubeMap, refVec, 0.0); + color = textureCubeLod(cubeMap, refVec, 0.0); } \ No newline at end of file diff --git a/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Environment/envMapping130.frag b/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Environment/envMapping130.frag index fcbc27f74..4b44923b6 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Environment/envMapping130.frag +++ b/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Environment/envMapping130.frag @@ -4,5 +4,5 @@ void main(){ //@input samplerCube cubeMap the cube map //@output vec4 color the output color - color = texture(cubeMap, refVec, 0.0); + color = textureLod(cubeMap, refVec, 0.0); } \ No newline at end of file