Skip to content

Commit

Permalink
Fix incorrect crystal geometry
Browse files Browse the repository at this point in the history
Two triangles in the crystal geometry used for raytracing were
incorrect, leaving two small holes in the crystal. This manifested as
slightly asymmetric brightness distribution of halos with Parry
crystals.
  • Loading branch information
naavis committed May 7, 2021
1 parent 21e3ae7 commit b600b99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ and this project adheres to
- Fixed bug where sky was shown a second time outside field of view with
equidistant and equal area camera projections
- Fixed missing prism face distances from save files
- Fixed bug with slightly incorrect crystal geometry causing uneven brightness
distribution with Parry crystal halos

## 3.2.0 - 2021-03-24

Expand Down
4 changes: 2 additions & 2 deletions src/haloray-core/resources/shaders/raytrace.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ ivec3 triangles[] = ivec3[](
ivec3(15, 16, 10),

// Face 7 (prism)
ivec3(10, 16, 17),
ivec3(10, 16, 11),
ivec3(16, 17, 11),

// Face 8 (prism)
ivec3(11, 17, 12),
ivec3(11, 17, 6),
ivec3(17, 12, 6)
);

Expand Down

0 comments on commit b600b99

Please sign in to comment.