fixed the weird edges on transparent objects

This commit is contained in:
zomseffen 2025-01-30 11:33:55 +01:00
parent 66902df99c
commit fbc21ba523
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -364,7 +364,7 @@ vec3 diffuse_tracing(uint volume_start, uvec2 raster_pos, vec3 pos, uint f) {
vec3 offset = vec3(x_offset, y_offset, z_offset);
color_sum += get_lighting_color(volume_start, origPosition + offset, orig_color_sample, normal) / float(raster_points);
color_sum += get_lighting_color(volume_start, pos + offset, orig_color_sample, normal) / float(raster_points);
}
}