1
0
Fork 0

Merge pull request #102105 from clayjohn/SDFGI-unflip-normal

Avoid flipping normal based on facing direction when calculating SDF
This commit is contained in:
Thaddeus Crews 2025-01-28 09:03:34 -06:00
commit 5ac6bce58d
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84
1 changed files with 1 additions and 1 deletions

View File

@ -2603,7 +2603,7 @@ void fragment_shader(in SceneData scene_data) {
vec3(0, -1, 0),
vec3(0, 0, -1));
vec3 cam_normal = mat3(scene_data.inv_view_matrix) * geo_normal;
vec3 cam_normal = mat3(scene_data.inv_view_matrix) * normalize(normal_interp);
float closest_dist = -1e20;