浏览代码

Fixed GIProbe blending, closes #15164

Juan Linietsky 7 年之前
父节点
当前提交
0c86c1ad15
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      drivers/gles3/shaders/scene.glsl

+ 3 - 3
drivers/gles3/shaders/scene.glsl

@@ -1476,9 +1476,9 @@ void gi_probe_compute(mediump sampler3D probe, mat4 probe_xform, vec3 bounds,vec
 		return;
 	}
 
-	//vec3 blendv = probe_pos/bounds * 2.0 - 1.0;
-	//float blend = 1.001-max(blendv.x,max(blendv.y,blendv.z));
-	float blend=1.0;
+	vec3 blendv = abs(probe_pos/bounds * 2.0 - 1.0);
+	float blend = 1.001-max(blendv.x,max(blendv.y,blendv.z));
+	//float blend=1.0;
 
 	float max_distance = length(bounds);