mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fixed GIProbe blending, closes #15164
This commit is contained in:
parent
a8a3d5c835
commit
0c86c1ad15
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue