fixed the weird edges on transparent objects
This commit is contained in:
parent
66902df99c
commit
fbc21ba523
2 changed files with 1 additions and 1 deletions
shaders
Binary file not shown.
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue