浏览代码

Fix sampler type

Popov72 5 年之前
父节点
当前提交
d78f4eb886
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Shaders/ShadersInclude/pbrFragmentSamplersDeclaration.fx

+ 2 - 2
src/Shaders/ShadersInclude/pbrFragmentSamplersDeclaration.fx

@@ -205,8 +205,8 @@
             #ifdef LODBASEDMICROSFURACE
                 #define sampleRefractionLod(s, c, l) texture2DLodEXT(s, c, l)
             #else
-                uniform samplerCube refractionSamplerLow;
-                uniform samplerCube refractionSamplerHigh;
+                uniform sampler2D refractionSamplerLow;
+                uniform sampler2D refractionSamplerHigh;
             #endif
         #endif
     #endif