Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sergcpp committed Aug 18, 2024
1 parent 8046a54 commit 0a0f4ef
Show file tree
Hide file tree
Showing 43 changed files with 123 additions and 123 deletions.
6 changes: 3 additions & 3 deletions internal/shaders/light_bvh.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ float calc_lnode_importance(const light_wbvh_node_t n, const vec3 P, out float i
n.bbox_max[2][i] - n.bbox_min[2][i]);
const float extent = 0.5 * length(ext);

const vec3 pc = vec3(0.5 * (n.bbox_min[0][i] + n.bbox_max[0][i]),
0.5 * (n.bbox_min[1][i] + n.bbox_max[1][i]),
0.5 * (n.bbox_min[2][i] + n.bbox_max[2][i]));
const vec3 pc = 0.5 * vec3(n.bbox_min[0][i] + n.bbox_max[0][i],
n.bbox_min[1][i] + n.bbox_max[1][i],
n.bbox_min[2][i] + n.bbox_max[2][i]);
vec3 wi = P - pc;
const float dist2 = dot(wi, wi);
const float dist = sqrt(dist2);
Expand Down
6 changes: 3 additions & 3 deletions internal/shaders/output/intersect_area_lights.comp.cso.inl

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions internal/shaders/output/intersect_area_lights.comp.spv.inl

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions internal/shaders/output/shade_primary_atlas.comp.cso.inl

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions internal/shaders/output/shade_primary_atlas.comp.spv.inl

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions internal/shaders/output/shade_primary_atlas_sky.comp.cso.inl

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions internal/shaders/output/shade_primary_atlas_sky.comp.spv.inl

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions internal/shaders/output/shade_primary_bindless.comp.cso.inl

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions internal/shaders/output/shade_primary_bindless.comp.spv.inl

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions internal/shaders/output/shade_secondary_atlas.comp.cso.inl

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions internal/shaders/output/shade_secondary_atlas.comp.spv.inl

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions internal/shaders/output/shade_secondary_bindless.comp.cso.inl

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions internal/shaders/output/shade_secondary_bindless.comp.spv.inl

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 0a0f4ef

Please sign in to comment.