Skip to content

Commit

Permalink
fix w23#60 and tune refract
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4E69676874466F78 committed Dec 13, 2021
1 parent 50ac0c3 commit 1214d33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ref_vk/shaders/ray.rgen
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,7 @@ void main() {
} else {
// Refraction
if (rand01() < payload_opaque.transmissiveness) {
throughput *= material.baseColor;
direction = refract(direction, payload_opaque.geometry_normal, .8);
direction = refract(direction, payload_opaque.geometry_normal, .95);
origin = payload_opaque.hit_pos_t.xyz - payload_opaque.geometry_normal * shadow_offset_fudge;
continue;
}
Expand Down

0 comments on commit 1214d33

Please sign in to comment.