浏览代码

lightmap capture broken on webgl1.0

lightmap capture uniform definition caused shader compile errors on WebGL1.0
WeaselShoppe 4 年之前
父节点
当前提交
1912cc3eef
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/gles2/shaders/scene.glsl

+ 1 - 1
drivers/gles2/shaders/scene.glsl

@@ -955,7 +955,7 @@ vec4 texture2D_bicubic(sampler2D tex, vec2 uv) {
 #endif
 #endif
 
 
 #ifdef USE_LIGHTMAP_CAPTURE
 #ifdef USE_LIGHTMAP_CAPTURE
-uniform mediump vec4[12] lightmap_captures;
+uniform mediump vec4 lightmap_captures[12];
 uniform bool lightmap_capture_sky;
 uniform bool lightmap_capture_sky;
 
 
 #endif
 #endif