Просмотр исходного кода

Used the proper Lod finction in the reflect debug material

Nehon 9 лет назад
Родитель
Сommit
6c2396f023

+ 1 - 1
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);
 }

+ 1 - 1
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);
 }