Skip to content

Commit

Permalink
Always zero out aux buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
sergcpp committed May 1, 2023
1 parent 3753c19 commit 2cf34cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/CoreSIMD.h
Original file line number Diff line number Diff line change
Expand Up @@ -6589,7 +6589,7 @@ void Ray::NS::ShadePrimary(const pass_settings_t &ps, Span<const hit_data_t<S>>
const ray_data_t<S> &r = rays[i];
const hit_data_t<S> &inter = inters[i];

simd_fvec<S> out_rgba[4] = {0.0f}, base_color[3], depth_normal[4];
simd_fvec<S> out_rgba[4] = {}, base_color[3] = {}, depth_normal[4] = {};
ShadeSurface(ps, random_seq, inter, r, sc, node_index, textures, out_rgba, out_secondary_rays,
out_secondary_rays_count, out_shadow_rays, out_shadow_rays_count, base_color, depth_normal);
UNROLLED_FOR(j, 3, { out_rgba[j] = min(out_rgba[j], clamp_direct); })
Expand Down

0 comments on commit 2cf34cc

Please sign in to comment.