From 6c2396f0237e0fa8d6a68ee4a4a5255a9877818b Mon Sep 17 00:00:00 2001 From: Nehon Date: Thu, 19 Nov 2015 19:05:53 +0100 Subject: [PATCH] Used the proper Lod finction in the reflect debug material --- .../Common/MatDefs/ShaderNodes/Environment/envMapping100.frag | 2 +- .../Common/MatDefs/ShaderNodes/Environment/envMapping130.frag | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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